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

AVL.ImageProfileAlongPath Method

Creates a series of segments across the input path, measures the average pixel intensity on each of the segments, and creates the final profile from that values.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ImageProfileAlongPath(
	ref AvlNet.ImageProfileAlongPathState ioState,
	AvlNet.Image inImage,
	AvlNet.Path inScanPath,
	AvlNet.CoordinateSystem2D? inScanPathAlignment,
	int inScanWidth,
	AvlNet.InterpolationMethod inInterpolationMethod,
	float inSmoothingStdDev,
	out AvlNet.Profile outProfile,
	out AvlNet.Path outPath,
	out AvlNet.Path outAlignedScanPath,
	out AvlNet.Path[] diagSamplingPoints
)

Parameters

Name Type Range Default Description
ioStateAvlNet.ImageProfileAlongPathState
inImageAvlNet.ImageInput image.
inScanPathAvlNet.PathPath along which the profile is extracted.
inScanPathAlignmentAvlNet.CoordinateSystem2D?Adjusts the scan path to the position of the inspected object. Default value: atl::NIL, or null.
inScanWidthint<1, INF>5Width of the scan area. Default value: 5.
inInterpolationMethodAvlNet.InterpolationMethodBilinearInterpolation method used to compute pixel brightness in locations of not-integer coordinates. Default value: Bilinear.
inSmoothingStdDevfloat<0.0f, INF>0.6fStandard deviation of the gaussian smoothing applied to the extracted profile. Default value: 0.6f.
outProfileAvlNet.ProfileThe resulting profile of the pixel brightness.
outPathAvlNet.PathThe path consisting of the points from which the resulting profile is extracted.
outAlignedScanPathAvlNet.PathInput scan path after transformation (in the image coordinates)
diagSamplingPointsAvlNet.PathArray of paths each one containing the sampling points that contributed to a single value of the extracted profile.

Examples

ImageProfileAlongPath applied on an image of a bottle (inScanWidth = 5)

See also