add a DeepGreen colormap#17254
Conversation
|
why the autobot is always blocked? |
|
@jsxyhelu You have to create a branch with a specific name. If you have a clean local state on your computer, it is something like: Have a look at these introduction tutorials: Can you add the visualisation of the colormap both in this pull request and in the documentation? Also, do you have a reference on this colormap? Something like an equivalent in Matplotlib, gnuplot, or Matlab for instance? If this is a custom colormap, I would advice if it is possible to use an existing colormap. See for instance the colormap in Matplotlib. |
modules/imgproc/src/colormap.cpp
Outdated
| colormap == COLORMAP_TWILIGHT ? (colormap::ColorMap*)(new colormap::Twilight) : | ||
| colormap == COLORMAP_TWILIGHT_SHIFTED ? (colormap::ColorMap*)(new colormap::TwilightShifted) : | ||
| colormap == COLORMAP_VIRIDIS ? (colormap::ColorMap*)(new colormap::Viridis) : | ||
| colormap == COLORMAP_DEEPGREEN ? (colormap::ColorMap*)(new colormap::DeepGreen) : |
There was a problem hiding this comment.
Minor.
Can you keep it sorted alphabetically?
There was a problem hiding this comment.
you are right,I have changed my code.
| COLORMAP_TWILIGHT_SHIFTED = 19, //!<  | ||
| COLORMAP_TURBO = 20 //!<  | ||
| COLORMAP_TURBO = 20, //!<  | ||
| COLORMAP_DEEPGREEN = 21 |
There was a problem hiding this comment.
Visualisation is added.
This pullrequest changes
I implemented the colormap "DeepGreen"
And, I add cv::COLORMAP_DEEPGREEN as the flag of cv::applyColorMap.
I checked this feature using the following code.
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request