You are here: Start » AVL.NET » AVL.ImageAlongPath(AvlNet.Image, AvlNet.Path, AvlNet.CoordinateSystem2D?, int, AvlNet.Axis, AvlNet.InterpolationMethod, AvlNet.Image, AvlNet.Path, AvlNet.Path[])

AVL.ImageAlongPath(AvlNet.Image, AvlNet.Path, AvlNet.CoordinateSystem2D?, int, AvlNet.Axis, AvlNet.InterpolationMethod, AvlNet.Image, AvlNet.Path, AvlNet.Path[])

Creates an image from pixels traversed along a path.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void ImageAlongPath(
	AvlNet.Image inImage,
	AvlNet.Path inAxisPath,
	AvlNet.CoordinateSystem2D? inAxisPathAlignment,
	int inScanWidth,
	AvlNet.Axis inAxisType,
	AvlNet.InterpolationMethod inInterpolationMethod,
	out AvlNet.Image outImage,
	out AvlNet.Path outAlignedAxisPath,
	out AvlNet.Path[] diagSamplingPoints
)

Parameters

inImage
Type: AvlNet.Image
Input image
inAxisPath
Type: AvlNet.Path
Input path
inAxisPathAlignment
Type: System.Nullable<AvlNet.CoordinateSystem2D>
Adjusts the axis path to the position of the inspected object, or null.
inScanWidth
Type: System.Int32
The width of the stripe of pixels along the given path
inAxisType
Type: AvlNet.Axis
Type of axis the transformed axis path will be parallel to
inInterpolationMethod
Type: AvlNet.InterpolationMethod
The interpolation method used to compute pixel brightness in locations of not-integer coordinates
outImage
Type: AvlNet.Image
Output image
outAlignedAxisPath
Type: AvlNet.Path
diagSamplingPoints
Type: AvlNet.Path
Array of paths each one containing the sampling points corresponding to one row of the resulting image

Description

The operation transforms the stripe of pixels of width inScanWidth along the inAxisPath in the way that transforms the path into straight segment. Two modes of pixel interpolation are available, the bilinear filtering being more precise and computationally expensive.

The optional parameter inAxisPathAlignment defines the transform to be performed on the inAxisPath so that the resulting path is defined in a new context, e.g. returned by one of Template Matching filters.

Examples

ImageAlongPath performed on the sample image with inScanWidth = 50 and inAxisType = Y. The result was transposed using TransposeImage for clarity.

See also