ImageAlongArc


Creates an image from pixels traversed along an arc.

Applications:E.g. "Unwrapping" of object contours, so that they appear as 1D structures on the output image.

Syntax

C++
C#
Python
 
def ImageAlongArc(
	inImage: Image,
	inAxisArc: Arc2D,
	outImage: Image,
	/,
	*,
	inAxisArcAlignment: CoordinateSystem2D | None = None,
	inScanWidth: int = 5,
	inAxisType: Axis = Axis.Y,
	inInterpolationMethod: InterpolationMethod = InterpolationMethod.Bilinear,
	inBorderColor: Pixel | None = None,
	outAlignedAxisArc: Arc2D | None = None
)
-> diagSamplingPoints: list[Path]

Parameters

Name Type Range Default Description
Input value inImage Image Input image
Input value inAxisArc Arc2D Input arc
Input value inAxisArcAlignment CoordinateSystem2D | None None Adjusts the axis arc to the position of the inspected object
Input value inScanWidth int 1 - 5 The width of the stripe of pixels along the given arc
Input value inAxisType Axis Axis.Y Type of axis the transformed axis arc will be parallel to
Input value inInterpolationMethod InterpolationMethod InterpolationMethod.Bilinear The interpolation method used to compute pixel brightness in locations of not-integer coordinates
Input value inBorderColor Pixel | None None Color of pixel outside image. If inBorderColor = NIL then algorithm repeats color of boarder.
Output value outImage Image Output image
Output value outAlignedAxisArc Arc2D | None None Input arc after transformation (in the image coordinates)
Diagnostic input diagSamplingPoints list[Path] Array of paths each one containing the sampling points corresponding to one row of the resulting image