HALCON Reference Manual 10.0.2
Name
merge_regions_line_scanmerge_regions_line_scanmerge_regions_line_scanMergeRegionsLineScanMergeRegionsLineScan — Merge regions from line scan images.
Herror merge_regions_line_scan(const Hobject CurrRegions, const Hobject PrevRegions, Hobject* CurrMergedRegions, Hobject* PrevMergedRegions, const Hlong ImageHeight, const char* MergeBorder, const Hlong MaxImagesRegion)
Herror T_merge_regions_line_scan(const Hobject CurrRegions, const Hobject PrevRegions, Hobject* CurrMergedRegions, Hobject* PrevMergedRegions, const Htuple ImageHeight, const Htuple MergeBorder, const Htuple MaxImagesRegion)
Herror merge_regions_line_scan(Hobject CurrRegions, Hobject PrevRegions, Hobject* CurrMergedRegions, Hobject* PrevMergedRegions, const HTuple& ImageHeight, const HTuple& MergeBorder, const HTuple& MaxImagesRegion)
HRegion HRegion::MergeRegionsLineScan(const HRegion& PrevRegions, HRegion* PrevMergedRegions, const HTuple& ImageHeight, const HTuple& MergeBorder, const HTuple& MaxImagesRegion) const
HRegionArray HRegionArray::MergeRegionsLineScan(const HRegionArray& PrevRegions, HRegionArray* PrevMergedRegions, const HTuple& ImageHeight, const HTuple& MergeBorder, const HTuple& MaxImagesRegion) const
void HOperatorSetX.MergeRegionsLineScan(
[in] IHUntypedObjectX* CurrRegions, [in] IHUntypedObjectX* PrevRegions, [out] IHUntypedObjectX** CurrMergedRegions, [out] IHUntypedObjectX** PrevMergedRegions, [in] VARIANT ImageHeight, [in] VARIANT MergeBorder, [in] VARIANT MaxImagesRegion)
IHRegionX* HRegionX.MergeRegionsLineScan(
[in] IHRegionX* PrevRegions, [out] IHRegionX** PrevMergedRegions, [in] Hlong ImageHeight, [in] BSTR MergeBorder, [in] Hlong MaxImagesRegion)
static void HOperatorSet.MergeRegionsLineScan(HObject currRegions, HObject prevRegions, out HObject currMergedRegions, out HObject prevMergedRegions, HTuple imageHeight, HTuple mergeBorder, HTuple maxImagesRegion)
HRegion HRegion.MergeRegionsLineScan(HRegion prevRegions, out HRegion prevMergedRegions, int imageHeight, string mergeBorder, int maxImagesRegion)
The operator merge_regions_line_scanmerge_regions_line_scanmerge_regions_line_scanMergeRegionsLineScanMergeRegionsLineScan connects adjacent
regions, which were segmentated from adjacent images with the height
ImageHeightImageHeightImageHeightImageHeightimageHeight. This operator was especially designed to
process regions that were extracted from images grabbed by a
line scan camera. CurrRegionsCurrRegionsCurrRegionsCurrRegionscurrRegions contains the regions from the
current image and PrevRegionsPrevRegionsPrevRegionsPrevRegionsprevRegions the regions from the previous
one.
With the help of the parameter MergeBorderMergeBorderMergeBorderMergeBordermergeBorder two cases can be
distinguished: If the top (first) line of the current image touches
the bottom (last) line of the previous image, MergeBorderMergeBorderMergeBorderMergeBordermergeBorder
must be set to 'top'"top""top""top""top", otherwise set MergeBorderMergeBorderMergeBorderMergeBordermergeBorder to
'bottom'"bottom""bottom""bottom""bottom".
If the operator merge_regions_line_scanmerge_regions_line_scanmerge_regions_line_scanMergeRegionsLineScanMergeRegionsLineScan is used
recursivly, the parameter MaxImagesRegionMaxImagesRegionMaxImagesRegionMaxImagesRegionmaxImagesRegion determines the
maximum number of images which are covered by a merged region. All
older region parts are removed.
The operator merge_regions_line_scanmerge_regions_line_scanmerge_regions_line_scanMergeRegionsLineScanMergeRegionsLineScan returns two region
arrays. PrevMergedRegionsPrevMergedRegionsPrevMergedRegionsPrevMergedRegionsprevMergedRegions contains all those regions from
the previous input regions PrevRegionsPrevRegionsPrevRegionsPrevRegionsprevRegions, which could not be
merged with a current region. CurrMergedRegionsCurrMergedRegionsCurrMergedRegionsCurrMergedRegionscurrMergedRegions collects
all current regions together with the merged parts from the previous
images. Merged regions will exceed the original image, because the
previous regions are moved upward
(MergeBorderMergeBorderMergeBorderMergeBordermergeBorder='top'"top""top""top""top") or downward
(MergeBorderMergeBorderMergeBorderMergeBordermergeBorder='bottom'"bottom""bottom""bottom""bottom") according to the image
height. For this the system parameter 'clip_region'"clip_region""clip_region""clip_region""clip_region" (see
also set_systemset_systemset_systemSetSystemSetSystem) will internaly be set to 'false'"false""false""false""false".
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Merged regions from the previous iteration.
Current regions, merged with old ones where applicable.
Regions from the previous iteration which could not be
merged with the current ones.
Height of the line scan images.
Default value: 512
List of values: 240, 480, 512
Image line of the current image, which touches the
previous image.
Default value:
'top'
"top"
"top"
"top"
"top"
List of values: 'top'"top""top""top""top", 'bottom'"bottom""bottom""bottom""bottom"
Maximum number of images for a single region.
Default value: 3
Suggested values: 1, 2, 3, 4, 5
The operator merge_regions_line_scanmerge_regions_line_scanmerge_regions_line_scanMergeRegionsLineScanMergeRegionsLineScan returns the value 2 (H_MSG_TRUE)
if the given parameters are correct.
Otherwise, an exception will be raised.
Foundation
| HALCON Reference Manual 10.0.2 |
Copyright © 1996-2011 MVTec Software GmbH |