You are here: Start » AVL.NET » Function Reference » Image » Image Spatial Transforms » AVL.ImageAlongPath

AVL.ImageAlongPath

Creates an image from pixels traversed along a path.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ImageAlongPath
(
	AvlNet.Image inImage,
	AvlNet.Path inAxisPath,
	int inScanWidth,
	AvlNet.Axis inAxisType,
	AvlNet.InterpolationMethod inInterpolationMethod,
	AvlNet.Image outImage
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inAxisPathAvlNet.PathInput path.
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.

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.

Function Overrides

See also