Back to Aurora Vision Library Lite website
You are here: Start » Image » Image Drawing » VisualizeHeatmap
VisualizeHeatmap
Header: | AVL.h |
---|---|
Namespace: | avl |
Colorizes heat-map and blends it with background image.
Syntax
void avl::VisualizeHeatmap ( atl::Optional<const avl::Image&> inImage, const avl::Heatmap& inHeatmap, const avl::ColorPalette::Type& inPalette, atl::Optional<float> inPercentFuzziness, bool inForceMono, bool inThreshold, avl::Image& outImage, avl::Image& diagPalette )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | Optional<const Image&> | NIL | Input image | ||
inHeatmap | const Heatmap& | Confidence of defect at each pixel | |||
inPalette | const ColorPalette::Type& | GreenYellowRed | |||
inPercentFuzziness | Optional<float> | 0.0 - | 0.0f | ||
inForceMono | bool | Converts input image to monochromatic | |||
inThreshold | bool | Remove all values lower than value of minimal threshold. | |||
outImage | Image& | Output image | |||
diagPalette | Image& | Used palette preview |
Requirements
For input inImage only pixel formats are supported: 1⨯uint8, 1⨯uint16, 2⨯uint8, 2⨯uint16, 3⨯uint8, 3⨯uint16, 4⨯uint8, 4⨯uint16.
For input inHeatmap only pixel formats are supported: 1⨯uint8.
Read more about pixel formats in Image documentation.
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Not supported inHeatmap pixel format in VisualizeHeatmap. Supported formats: 1xUInt8. |
DomainError | Not supported inImage pixel format in VisualizeHeatmap. Supported formats: 1xUInt8, 1xUInt16, 2xUInt8, 2xUInt16, 3xUInt8, 3xUInt16, 4xUInt8, 4xUInt16. |