Name
union1union1Union1Union1 — Return the union of all input regions.
union1union1Union1Union1Union1 computes the union of all input regions and
returns the result in RegionUnionRegionUnionRegionUnionRegionUnionregionUnion.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Regions of which the union is to be computed.
Union of all input regions.
Number of elements: RegionUnion <= Region
* Union of segmentation results:
threshold(Image,Region1,128,255)
dyn_threshold(Image,Mean,Region2,5,'light')
concat_obj(Region1,Region2,Regions)
union1(Regions,RegionUnion)
/* Union of segmentation results: */
threshold(Image,&Region1,128.0,255.0);
dyn_threshold(Image,Mean,&Region2,5.0,"light");
concat_obj(Region1,Region2,&Regions);
union1(Regions,&RegionUnion);
* Union of segmentation results:
threshold(Image,Region1,128,255)
dyn_threshold(Image,Mean,Region2,5,'light')
concat_obj(Region1,Region2,Regions)
union1(Regions,RegionUnion)
* Union of segmentation results:
threshold(Image,Region1,128,255)
dyn_threshold(Image,Mean,Region2,5,'light')
concat_obj(Region1,Region2,Regions)
union1(Regions,RegionUnion)
* Union of segmentation results:
threshold(Image,Region1,128,255)
dyn_threshold(Image,Mean,Region2,5,'light')
concat_obj(Region1,Region2,Regions)
union1(Regions,RegionUnion)
Let F be the sum of all areas of the input regions. Then the
runtime complexity is O(log(sqrt(F)) * sqrt(F)).
union1union1Union1Union1Union1 always returns 2 (H_MSG_TRUE). The behavior in case of
empty input (no regions given) can be set via
set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)
and the behavior in case of an empty input region via
set_system('empty_region_result',<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>).
If necessary, an exception is raised.
thresholdthresholdThresholdThresholdThreshold,
connectionconnectionConnectionConnectionConnection,
regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing,
pouringpouringPouringPouringPouring
select_shapeselect_shapeSelectShapeSelectShapeSelectShape,
disp_regiondisp_regionDispRegionDispRegionDispRegion
union2union2Union2Union2Union2
intersectionintersectionIntersectionIntersectionIntersection,
complementcomplementComplementComplementComplement
Foundation