Back to Adaptive Vision Library website
You are here: Start » Function Reference » Deep Learning » DeepLearning_DetectAnomalies_Deprecated
DeepLearning_DetectAnomalies_Deprecated
Header: | AVL.h |
---|---|
Namespace: | avl |
Detects anomalies using trained deep-learning model.
Syntax
C++
void avl::DeepLearning_DetectAnomalies_Deprecated ( DeepLearningConnectionState& ioState, const avl::Image& inImage, atl::Optional<const avl::Region&> inRoi, const atl::String& inDeepModel, avl::Image& outHeatmap, bool& outIsValid, float& outScore, bool& outIsConfident, avl::Image& outReconstructedImage )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
ioState | DeepLearningConnectionState& | Object used to maintain state of the function. | ||
inImage | const Image& | Input image | ||
inRoi | Optional<const Region&> | NIL | Area of interest | |
inDeepModel | const String& | Trained model | ||
outHeatmap | Image& | Image contains heatmaps for each input image channel | ||
outIsValid | bool& | Returns true if anomaly was not found | ||
outScore | float& | Score of classification | ||
outIsConfident | bool& | Returns "false" if score is between T1 and T2 | ||
outReconstructedImage | Image& | Returns network answer |
Requirements
For input inImage only pixel formats are supported: 1⨯uint8, 3⨯uint8.
Read more about pixel formats in Image documentation.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty image in DeepLearning_DetectAnomalies_Deprecated. |
DomainError | Empty ROI region in DeepLearning_DetectAnomalies_Deprecated |
DomainError | Invalid DeepModel in DeepLearning_DetectAnomalies_Deprecated. |
DomainError | Region's frame does not reflect image size |