Spinnaker SDK C++
4.1.0.338
 
 

 
Loading...
Searching...
No Matches
ImageUtilityHeatmap Class Reference

Static functions to create heatmap images from image objects of pixel format Mono8 and Mono16. More...

#include <ImageUtilityHeatmap.h>

Static Public Member Functions

static ImagePtr CreateHeatmap (const ImagePtr &srcImage)
 Computes a heatmap image.
 
static ImagePtr CreateHeatmap (const ImagePtr &srcImage, const float min, const float max, const HeatmapColor lowColor, const HeatmapColor highColor, const bool doCheckInvalidVal, const unsigned int invalidVal)
 Computes a heatmap image considering custom min and max image data value.
 
static void CreateHeatmap (const ImagePtr &srcImage, ImagePtr &destImage)
 Computes a heatmap image.
 
static void SetHeatmapColorGradient (const HeatmapColor newLowColor, const HeatmapColor newHighColor)
 Sets the heatmap gradient color vector to the new desired range between HEATMAP_BLACK and HEATMAP_WHITE.
 
static void GetHeatmapColorGradient (HeatmapColor &currentLowColor, HeatmapColor &currentHighColor)
 Returns the current heatmap gradient color range.
 
static void SetHeatmapRange (const unsigned int newLowValue, const unsigned int newHighValue)
 Sets the high and low values used to determine which grayscale values are converted to a color 'heatmap' representation.
 
static void GetHeatmapRange (unsigned int &currentLowValue, unsigned int &currentHighValue)
 Returns the current high and low values used in heatmap representations.
 

Detailed Description

Static functions to create heatmap images from image objects of pixel format Mono8 and Mono16.

Member Function Documentation

◆ CreateHeatmap() [1/3]

static ImagePtr CreateHeatmap ( const ImagePtr srcImage)
static

Computes a heatmap image.

A heatmap image reinterprets monochrome data by mapping the luminosity of each pixel to a color value defined in the heatmap color gradient. The created image can be modified by changing the color gradient and heatmap range from the accompanying functions. The source image is required to be Mono8 or Mono16 pixel format.

Parameters
srcImageThe source image from which to create the heatmap
See also
SetHeatmapRange()
SetHeatmapColorGradient()
Returns
The heatmap image

◆ CreateHeatmap() [2/3]

static ImagePtr CreateHeatmap ( const ImagePtr srcImage,
const float  min,
const float  max,
const HeatmapColor  lowColor,
const HeatmapColor  highColor,
const bool  doCheckInvalidVal,
const unsigned int  invalidVal 
)
static

Computes a heatmap image considering custom min and max image data value.

A heatmap image reinterprets monochrome data by mapping the luminosity of each pixel to a color value defined in the heatmap color gradient. The created image can be modified by changing the color gradient and heatmap range from the accompanying functions. The source image is required to be Mono8 or Mono16 pixel format.

Parameters
srcImageThe source image from which to create the heatmap
minThe min image value to map to the heatmap low color
maxThe max image value to map to the heatmap high color
newLowColorNew color at which to begin the gradient.
newHighColorNew color at which to end the gradient.
doCheckInvalidValIndication if to check for invalid values
invalidValThe invalid value. heatmap will be color coded with specific color to indicate invalid pixels
See also
SetHeatmapRange()
SetHeatmapColorGradient()
Returns
The heatmap image

◆ CreateHeatmap() [3/3]

static void CreateHeatmap ( const ImagePtr srcImage,
ImagePtr destImage 
)
static

Computes a heatmap image.

A heatmap image reinterprets monochrome data by mapping the luminosity of each pixel to a color value defined in the heatmap color gradient. The created image can be modified by changing the color gradient and heatmap range from the accompanying functions. The source image is required to be Mono8 or Mono16 pixel format. The destination is required to be initialized, RGB8 or RGB16 pixel format, and have the same width, height, x offset, and y offset as the source image.

Parameters
srcImageThe source image from which to create the heatmap
destImageThe destination image in which to store the created heatmap
See also
SetHeatmapRange()
SetHeatmapColorGradient()

◆ GetHeatmapColorGradient()

static void GetHeatmapColorGradient ( HeatmapColor currentLowColor,
HeatmapColor currentHighColor 
)
static

Returns the current heatmap gradient color range.

Parameters
currentLowColorCurrent color at which the gradient begins.
currentHighColorCurrent color at which the gradient ends.
See also
SetHeatmapColorGradient()

◆ GetHeatmapRange()

static void GetHeatmapRange ( unsigned int &  currentLowValue,
unsigned int &  currentHighValue 
)
static

Returns the current high and low values used in heatmap representations.

Parameters
currentLowValueCurrent value at which color representation begins.
currentHighValueCurrent value at which color representation ends.
See also
SetHeatmapRange()

◆ SetHeatmapColorGradient()

static void SetHeatmapColorGradient ( const HeatmapColor  newLowColor,
const HeatmapColor  newHighColor 
)
static

Sets the heatmap gradient color vector to the new desired range between HEATMAP_BLACK and HEATMAP_WHITE.

Parameters
newLowColorNew color at which to begin the gradient.
newHighColorNew color at which to end the gradient.

◆ SetHeatmapRange()

static void SetHeatmapRange ( const unsigned int  newLowValue,
const unsigned int  newHighValue 
)
static

Sets the high and low values used to determine which grayscale values are converted to a color 'heatmap' representation.

Acceptable values range from 0 to 100.

Parameters
newLowValueNew value at which to begin color representation.
newHighValueNew value at which to end color representation.

The documentation for this class was generated from the following file: