ScanMultipleStripes_Direct
Locates multiple pairs of edges across a given path (without a scan map).
Applications:Very fast detection of multiple pairs of opposite edges - usually for counting or width measurements.
Syntax
C++
C#
Python
def ScanMultipleStripes_Direct( inImage: Image, inScanPath: Path, /, *, inScanPathAlignment: CoordinateSystem2D | None = None, inScanWidth: int = 5, inSamplingParams: SamplingParams = SamplingParams(InterpolationMethod.Bilinear, 1.0, None), inStripeScanParams: StripeScanParams = StripeScanParams(ProfileInterpolationMethod.Quadratic4, 0.6, 5.0, None, Polarity.Dark, 0.0, None), inMinGapWidth: float = 0.0, inMaxGapWidth: float | None = None, inLocalBlindness: LocalBlindness | None = None, outAlignedScanPath: Path | None = None, outBrightnessProfile: Profile | None = None, outResponseProfile: Profile | None = None ) -> ( outStripes: list[Stripe1D], outGaps: list[Gap1D], diagSamplingPoints: list[Path], diagSamplingStep: float )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inScanPath | Path | Path along which the scan is performed | ||
![]() |
inScanPathAlignment | CoordinateSystem2D | None | None | Adjusts the scan path to the position of the inspected object | |
![]() |
inScanWidth | int | 1 - ![]() |
5 | Width of the scan field in pixels |
![]() |
inSamplingParams | SamplingParams | SamplingParams(InterpolationMethod.Bilinear, 1.0, None) | Parameters controlling the sampling process | |
![]() |
inStripeScanParams | StripeScanParams | StripeScanParams(ProfileInterpolationMethod.Quadratic4, 0.6, 5.0, None, Polarity.Dark, 0.0, None) | Parameters controlling the stripe extraction process | |
![]() |
inMinGapWidth | float | 0.0 - ![]() |
0.0 | Minimal distance between consecutive stripes |
![]() |
inMaxGapWidth | float | None | 0.0 - ![]() |
None | Maximal distance between consecutive stripes |
![]() |
inLocalBlindness | LocalBlindness | None | None | Defines conditions in which weaker edges can be detected in the vicinity of stronger edges | |
![]() |
outStripes | list[Stripe1D] | Found stripes | ||
![]() |
outGaps | list[Gap1D] | Distances between consecutive stripes | ||
![]() |
outAlignedScanPath | Path | None | None | Transformed input path | |
![]() |
outBrightnessProfile | Profile | None | None | Extracted image profile | |
![]() |
outResponseProfile | Profile | None | None | Profile of the edge (derivative) operator response | |
![]() |
diagSamplingPoints | list[Path] | Array of paths each one containing the sampling points that contributes to a single value of the extracted profile | ||
![]() |
diagSamplingStep | float | Used distance between consecutive sampling points on the scan path |
Hardware Acceleration
This operation is optimized for SSE2 technology for pixels of type: UINT8.
This operation is optimized for AVX2 technology for pixels of type: UINT8.
This operation is optimized for NEON technology for pixels of type: UINT8.
This operation supports automatic parallelization for multicore and multiprocessor systems.




