Lines Matching refs:colormap
134 namespace colormap
137 class ColorMap {
143 virtual ~ColorMap() {}
145 // Applies the colormap on a given image.
158 // Interpolates from a base colormap.
165 // Interpolates from a base colormap.
172 // Interpolates from a base colormap.
178 // Equals the GNU Octave colormap "autumn".
179 class Autumn : public ColorMap {
181 Autumn() : ColorMap() {
185 Autumn(int n) : ColorMap() {
194 this->_lut = ColorMap::linear_colormap(X,
202 // Equals the GNU Octave colormap "bone".
203 class Bone : public ColorMap {
205 Bone() : ColorMap() {
209 Bone(int n) : ColorMap() {
218 this->_lut = ColorMap::linear_colormap(X,
229 // Equals the GNU Octave colormap "jet".
230 class Jet : public ColorMap {
236 Jet(int n) : ColorMap() {
248 this->_lut = ColorMap::linear_colormap(X,
256 // Equals the GNU Octave colormap "winter".
257 class Winter : public ColorMap {
259 Winter() : ColorMap() {
263 Winter(int n) : ColorMap() {
272 this->_lut = ColorMap::linear_colormap(X,
280 // Equals the GNU Octave colormap "rainbow".
281 class Rainbow : public ColorMap {
283 Rainbow() : ColorMap() {
287 Rainbow(int n) : ColorMap() {
296 this->_lut = ColorMap::linear_colormap(X,
304 // Equals the GNU Octave colormap "ocean".
305 class Ocean : public ColorMap {
307 Ocean() : ColorMap() {
311 Ocean(int n) : ColorMap() {
320 this->_lut = ColorMap::linear_colormap(X,
328 // Equals the GNU Octave colormap "summer".
329 class Summer : public ColorMap {
331 Summer() : ColorMap() {
335 Summer(int n) : ColorMap() {
344 this->_lut = ColorMap::linear_colormap(X,
352 // Equals the GNU Octave colormap "spring".
353 class Spring : public ColorMap {
355 Spring() : ColorMap() {
359 Spring(int n) : ColorMap() {
368 this->_lut = ColorMap::linear_colormap(X,
376 // Equals the GNU Octave colormap "cool".
377 class Cool : public ColorMap {
379 Cool() : ColorMap() {
383 Cool(int n) : ColorMap() {
392 this->_lut = ColorMap::linear_colormap(X,
400 // Equals the GNU Octave colormap "hsv".
401 class HSV : public ColorMap {
403 HSV() : ColorMap() {
407 HSV(int n) : ColorMap() {
416 this->_lut = ColorMap::linear_colormap(X,
424 // Equals the GNU Octave colormap "pink".
425 class Pink : public ColorMap {
427 Pink() : ColorMap() {
431 Pink(int n) : ColorMap() {
440 this->_lut = ColorMap::linear_colormap(X,
448 // Equals the GNU Octave colormap "hot".
449 class Hot : public ColorMap {
451 Hot() : ColorMap() {
455 Hot(int n) : ColorMap() {
464 this->_lut = ColorMap::linear_colormap(X,
472 // Colormap similar to MATLAB's "parula".
473 class Parula : public ColorMap {
475 Parula() : ColorMap() {
479 Parula(int n) : ColorMap() {
488 this->_lut = ColorMap::linear_colormap(X,
496 void ColorMap::operator()(InputArray _src, OutputArray _dst) const
511 // Apply the ColorMap.
515 Mat ColorMap::linear_colormap(InputArray X,
530 void applyColorMap(InputArray src, OutputArray dst, int colormap)
532 colormap::ColorMap* cm =
533 colormap == COLORMAP_AUTUMN ? (colormap::ColorMap*)(new colormap::Autumn) :
534 colormap == COLORMAP_BONE ? (colormap::ColorMap*)(new colormap::Bone) :
535 colormap == COLORMAP_COOL ? (colormap::ColorMap*)(new colormap::Cool) :
536 colormap == COLORMAP_HOT ? (colormap::ColorMap*)(new colormap::Hot) :
537 colormap == COLORMAP_HSV ? (colormap::ColorMap*)(new colormap::HSV) :
538 colormap == COLORMAP_JET ? (colormap::ColorMap*)(new colormap::Jet) :
539 colormap == COLORMAP_OCEAN ? (colormap::ColorMap*)(new colormap::Ocean) :
540 colormap == COLORMAP_PARULA ? (colormap::ColorMap*)(new colormap::Parula) :
541 colormap == COLORMAP_PINK ? (colormap::ColorMap*)(new colormap::Pink) :
542 colormapcolormap::ColorMap*)(new colormap::Rainbow) :
543 colormap == COLORMAP_SPRING ? (colormap::ColorMap*)(new colormap::Spring) :
544 colormap == COLORMAP_SUMMER ? (colormap::ColorMap*)(new colormap::Summer) :
545 colormap == COLORMAP_WINTER ? (colormap::ColorMap*)(new colormap::Winter) : 0;
548 CV_Error( Error::StsBadArg, "Unknown colormap id; use one of COLORMAP_*");