You are here: Start » FIL.NET » FIS.CreateGrayModel Method

FIS.CreateGrayModel Method

Creates a model for NCC or SAD template matching.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

public static void CreateGrayModel
(
	FilNet.Image inImage,
	NullableRef<FilNet.Region> inTemplateRegion,
	FilNet.Rectangle2D? inReferenceFrame,
	int inMinPyramidLevel,
	int? inMaxPyramidLevel,
	float inMinAngle,
	float inMaxAngle,
	float inAnglePrecision,
	float inMinScale,
	float inMaxScale,
	float inScalePrecision,
	FilNet.GrayModel outGrayModel
)

Parameters

Name Type Range Default Description
inImageFilNet.ImageImage from which model will be extracted.
inTemplateRegionFilNet.NullableRef<FilNet.Region>Region of the image from which model will be extracted. Default value: ftl::NIL.
inReferenceFrameFilNet.Rectangle2D?Exact position of the model object in the image. Default value: ftl::NIL.
inMinPyramidLevelint<0, 12>0Defines the index of the lowest reduced resolution level used to speed up computations. Default value: 0.
inMaxPyramidLevelint?<0, 12>Defines the number of reduced resolution levels used to speed up computations. Default value: ftl::NIL.
inMinAnglefloat0.0fStart of range of possible rotations. Default value: 0.0f.
inMaxAnglefloat0.0fEnd of range of possible rotations. Default value: 0.0f.
inAnglePrecisionfloat<0.001f, 10.0f>1.0fDefines angular resolution of the matching process. Default value: 1.0f.
inMinScalefloat<0.0f, INF>1.0fStart of range of possible scales. Default value: 1.0f.
inMaxScalefloat<0.0f, INF>1.0fEnd of range of possible scales. Default value: 1.0f.
inScalePrecisionfloat<0.001f, 10.0f>1.0fDefines scale resolution of the matching process. Default value: 1.0f.
outGrayModelFilNet.GrayModelCreated model that can be used by LocateMultipleObjects_NCC and LocateMultipleObjects_SAD filters.

Function Overrides

See also