You are here: Start » AVL.NET » AVL.ImageAlongPath Method

AVL.ImageAlongPath Method

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

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inAxisPathAvlNet.PathInput path.
inAxisPathAlignmentAvlNet.CoordinateSystem2D?Adjusts the axis path to the position of the inspected object. Default value: atl::NIL, or null.
inScanWidthint<1, INF>5The width of the stripe of pixels along the given path. Default value: 5.
inAxisTypeAvlNet.AxisYType of axis the transformed axis path will be parallel to. Default value: Y.
inInterpolationMethodAvlNet.InterpolationMethodBilinearThe interpolation method used to compute pixel brightness in locations of not-integer coordinates. Default value: Bilinear.
outImageAvlNet.ImageOutput image.
outAlignedAxisPathAvlNet.PathInput path after transformation (in the image coordinates)
diagSamplingPointsAvlNet.PathArray 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