You are here: Start » AVL.NET » AVL.CreateGrayModel(AvlNet.Image, AvlNet.Region, AvlNet.Rectangle2D?, int, int?, float, float, float, float, float, float, AvlNet.GrayModel)

AVL.CreateGrayModel(AvlNet.Image, AvlNet.Region, AvlNet.Rectangle2D?, int, int?, float, float, float, float, float, float, AvlNet.GrayModel)

Creates a model for NCC or SAD template matching.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


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

Parameters

inImage
Type: AvlNet.Image
Image from which model will be extracted
inTemplateRegion
Type: AvlNet.Region
Region of the image from which model will be extracted, or null.
inReferenceFrame
Type: System.Nullable<AvlNet.Rectangle2D>
Exact position of the model object in the image, or null.
inMinPyramidLevel
Type: System.Int32
Defines the index of the lowest reduced resolution level used to speed up computations
inMaxPyramidLevel
Type: System.Nullable<System.Int32>
Defines the number of reduced resolution levels used to speed up computations, or null.
inMinAngle
Type: System.Single
Start of range of possible rotations
inMaxAngle
Type: System.Single
End of range of possible rotations
inAnglePrecision
Type: System.Single
Defines angular resolution of the matching process
inMinScale
Type: System.Single
Start of range of possible scales
inMaxScale
Type: System.Single
End of range of possible scales
inScalePrecision
Type: System.Single
Defines scale resolution of the matching process
outGrayModel
Type: AvlNet.GrayModel
Created model that can be used by LocateMultipleObjects_NCC and LocateMultipleObjects_SAD filters

See also