Back to Adaptive Vision Library website
You are here: Start » Function Reference » Deep Learning » DeepLearning_DetectFeatures
DeepLearning_DetectFeatures
Performs feature classification using trained deep-learning model.
Syntax
C++
C#
void avl::DeepLearning_DetectFeatures ( DeepLearningConnectionState& ioState, const avl::Image& inImage, const atl::Optional<avl::Region>& inRoi, const avl::DeepModel& inDeepModel, const bool& inOverlap, atl::Array<avl::Image>& outHeatmaps, avl::Image& outFeature1, avl::Image& outFeature2, avl::Image& outFeature3, avl::Image& outFeature4 )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
| ioState | DeepLearningConnectionState& | Object used to maintain state of the function. | ||
![]() |
inImage | const Image& | Input image | |
![]() |
inRoi | const Optional<Region>& | NIL | Area of interest |
![]() |
inDeepModel | const DeepModel& | Trained model | |
![]() |
inOverlap | const bool& | True | Add tiles overlapping to improve results quality |
![]() |
outHeatmaps | Array<Image>& | Returns heatmaps for all classes | |
![]() |
outFeature1 | Image& | Returns heatmap for first feature class | |
![]() |
outFeature2 | Image& | Returns heatmap for second feature class or empty image if class is not specified | |
![]() |
outFeature3 | Image& | Returns heatmap for third feature class or empty image if class is not specified | |
![]() |
outFeature4 | Image& | Returns heatmap for fourth feature class or empty image if class is not specified |
Errors
| Error type | Description |
|---|---|
| DomainError | Empty ROI region in DeepLearning_DetectFeatures |
| DomainError | Invalid DeepModel in DeepLearning_DetectFeatures. |
| DomainError | Empty image in DeepLearning_DetectFeatures. |
| IoError | Unable to connect to Deep Learning Service. |
| IoError | Connection with service lost. |
| IoError | Missing results count. |
| IoError | Received invalid results count. Classification aborted. |
| IoError | Missing result. |


