ProfileStripes


Finds pairs of opposite (raising and falling) edges in the input profile.

Applications:Can be used for 1D stripe detection when the brightness profile is extracted from an image in a non-standard way.

Syntax

C++
C#
Python
 
def ProfileStripes(
	inProfile: Profile,
	/,
	*,
	inRange: Range | None = None,
	inCyclic: bool = False,
	inStripeScanParams: StripeScanParams = StripeScanParams(ProfileInterpolationMethod.Quadratic4, 0.6, 5.0, None, Polarity.Bright, 0.0, None),
	inMinGapWidth: float = 0.0,
	inMaxGapWidth: float | None = None,
	inLocalBlindness: LocalBlindness | None = None,
	outResponseProfile: Profile | None = None
)
-> (
	outStripes: list[ProfileStripe],
	outGapWidths: list[float]
)

Parameters

Name Type Range Default Description
Input value inProfile Profile Input profile
Input value inRange Range | None None
Input value inCyclic bool False
Input value inStripeScanParams StripeScanParams StripeScanParams(ProfileInterpolationMethod.Quadratic4, 0.6, 5.0, None, Polarity.Bright, 0.0, None) Parameters controlling the stripe extraction process
Input value inMinGapWidth float 0.0 - 0.0 Minimal distance between consecutive stripes
Input value inMaxGapWidth float | None 0.0 - None Maximal distance between consecutive stripes
Input value inLocalBlindness LocalBlindness | None None Defines conditions in which weaker edges can be detected in the vicinity of stronger edges
Output value outStripes list[ProfileStripe] Found stripes
Output value outGapWidths list[float] Distances between consecutive stripes
Output value outResponseProfile Profile | None None Profile of the edge (derivative) operator response