15 (
"Autumn", cv::COLORMAP_AUTUMN)
16 (
"Bone", cv::COLORMAP_BONE)
17 (
"Jet", cv::COLORMAP_JET)
18 (
"Winter", cv::COLORMAP_WINTER)
19 (
"Rainbow", cv::COLORMAP_RAINBOW)
20 (
"Ocean", cv::COLORMAP_OCEAN)
21 (
"Summer", cv::COLORMAP_SUMMER)
22 (
"Spring", cv::COLORMAP_SPRING)
23 (
"Cool", cv::COLORMAP_COOL)
24 (
"Hsv", cv::COLORMAP_HSV)
25 (
"Pink", cv::COLORMAP_PINK)
26 (
"Hot", cv::COLORMAP_HOT)
27 (
"Parula", cv::COLORMAP_PARULA);
37 void mexFunction(
int nlhs, mxArray *plhs[],
int nrhs,
const mxArray *prhs[])
43 vector<MxArray> rhs(prhs, prhs+nrhs);
46 Mat src(rhs[0].toMat(CV_8U)), dst;
47 int colormap = ColormapTypesMap[rhs[1].toString()];
48 applyColorMap(src, dst, colormap);
49 cvtColor(dst, dst, cv::COLOR_BGR2RGB);
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
Main entry called from Matlab.
mxArray object wrapper for data conversion and manipulation.
void nargchk(bool cond)
Alias for input/ouput arguments number check.
Global constant definitions.
std::map wrapper with one-line initialization and lookup method.