package
Vision.Features.FastCircleStencil
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| constant | radius | Integer | = 3 | |
| constant | sampleCount | Integer | = 16 | |
| constant | offsets | Integer | [sampleCount,2] = [
-3,0; -3,1; -2,2; -1,3; 0,3; 1,3; 2,2; 3,1;
3,0; 3,-1; 2,-2; 1,-3; 0,-3; -1,-3; -2,-2; -3,-1] |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
package FastCircleStencil
constant Integer radius = 3;
constant Integer sampleCount = 16;
// Row/column offsets, clockwise from the top of the radius-three circle.
constant Integer offsets[sampleCount,2] = [
-3,0; -3,1; -2,2; -1,3; 0,3; 1,3; 2,2; 3,1;
3,0; 3,-1; 2,-2; 1,-3; 0,-3; -1,-3; -2,-2; -3,-1];
end FastCircleStencil;