CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

model

Vision.Features.FeatureSelection

Public declarations

Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.

RoleNameTypeDimensions / attributes / defaultDescription
parameterwidthInteger= 160
parameterheightInteger= 90
parametercapacityInteger= 14400
parameterminimumBorderInteger= 0
parametergridBoolean= false
inputenabledBoolean= true
inputscoresReal[width*height] = zeros(width*height)
inputsettingsReal[8] = {1e-9,0.01,1e12,3.0,240.0,1.0,0.0,0.0}
outputfeaturesReal[capacity,3]
outputcountReal
outputvalidReal

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;