model
Vision.Features.FeatureSelection
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| parameter | width | Integer | = 160 | |
| parameter | height | Integer | = 90 | |
| parameter | capacity | Integer | = 14400 | |
| parameter | minimumBorder | Integer | = 0 | |
| parameter | grid | Boolean | = false | |
| input | enabled | Boolean | = true | |
| input | scores | Real | [width*height] = zeros(width*height) | |
| input | settings | Real | [8] = {1e-9,0.01,1e12,3.0,240.0,1.0,0.0,0.0} | |
| output | features | Real | [capacity,3] | |
| output | count | Real | | |
| output | valid | Real | |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
model FeatureSelection
import SelectRasterFeatures = Vision.Features.SelectRasterFeatures;
parameter Integer width = 160;
parameter Integer height = 90;
// Storage covers the full editable feature limit.
parameter Integer capacity = 14400;
// Structural loop bound; presets may modify it before compilation.
parameter Integer minimumBorder = 0 annotation(Evaluate = true);
parameter Boolean grid = false;
input Boolean enabled = true;
input Real scores[width*height] = zeros(width*height);
input Real settings[8] = {1e-9,0.01,1e12,3.0,240.0,1.0,0.0,0.0};
output Real features[capacity,3];
output Real count;
output Real valid;
equation
(features,count,valid) = SelectRasterFeatures(scores,width,height,capacity,minimumBorder,settings,grid,enabled);
end FeatureSelection;