A helper struct to create cubehelix instances using named parameters. More...
#include <rcv.hpp>
Public Member Functions | |
| create & | nlev (size_t val) |
| The number of color levels in the color map. | |
| create & | start (float val) |
| The starting position in the color space. 0=blue, 1=red, 2=green. Defaults to 0.5. | |
| create & | rot (float val) |
| The number of rotations through the rainbow. | |
| create & | gamma (float val) |
| The gamma correction for intensity. | |
| create & | hue (float val) |
| The hue intensity factor. | |
| create & | reverse () |
| Set to True to reverse the color map. | |
A helper struct to create cubehelix instances using named parameters.
cubehelix colorizer = cubehelix::create().start(.6).rot(1.5).nlev(128).reverse(); cv::Mat grayscale; cv::Mat colorized = colorizer(grayscale);
| create& rcv::cubehelix::create::reverse | ( | ) | [inline] |
Set to True to reverse the color map.
Will go from black to white. Good for density plots where shade~density.
| create& rcv::cubehelix::create::rot | ( | float | val | ) | [inline] |
The number of rotations through the rainbow.
Can be positive or negative, indicating direction of rainbow. Negative values correspond to Blue->Red direction.
1.7.6.1