Name
inner_circleinner_circleInnerCircleInnerCircle — Largest inner circle of a region.
The operator inner_circleinner_circleInnerCircleInnerCircleInnerCircle determines the largest inner circle
of a region.
This is the biggest discrete circle region that completely fits into
the region.
For this circle the center (RowRowRowRowrow, ColumnColumnColumnColumncolumn) and the
radius (RadiusRadiusRadiusRadiusradius) are calculated.
If the position of the circle is ambiguous, the "first possible"
position (as far upper left as possible) is returned.
In the documentation of this chapter (Regions / Features), you can
find an image illustrating regions with varying inner circles.
The output of the operator is chosen in such a way that it can be
used as an input for the operators disp_circledisp_circleDispCircleDispCircleDispCircle,
gen_circlegen_circleGenCircleGenCircleGenCircle, and gen_ellipse_contour_xldgen_ellipse_contour_xldGenEllipseContourXldGenEllipseContourXldGenEllipseContourXld.
If several regions are passed in RegionsRegionsRegionsRegionsregions corresponding tuples
are returned as output parameters.
In case of an empty input region all parameters have the value
0.0 if no other behavior was set with set_systemset_systemSetSystemSetSystemSetSystem.
If several inner circles are present at a region
only the most upper left solution is returned.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Automatically parallelized on tuple level.
Line index of the center.
Column index of the center.
Radius of the inner circle.
Assertion: Radius >= 0
read_image(Image,'fabrik')
regiongrowing(Image,Seg,5,5,6,100)
select_shape(Seg,H,'area','and',100,2000)
inner_circle(H,Row,Column,Radius)
gen_circle(Circles,Row,Column,Radius)
dev_set_draw('margin')
dev_display(Circles)
read_image(&Image,"fabrik");
open_window(0,0,-1,-1,0,"visible","",&WindowHandle);
regiongrowing(Image,&Seg,5,5,6.0,100);
select_shape(Seg,&H,"area","and",100.0,2000.0);
T_inner_circle(H,&Row,&Column,&Radius);
T_gen_circle(&Circles,Row,Column,Radius);
set_draw(WindowHandle,"margin");
disp_region(Circles,WindowHandle);
read_image(Image,'fabrik')
regiongrowing(Image,Seg,5,5,6,100)
select_shape(Seg,H,'area','and',100,2000)
inner_circle(H,Row,Column,Radius)
gen_circle(Circles,Row,Column,Radius)
dev_set_draw('margin')
dev_display(Circles)
read_image(Image,'fabrik')
regiongrowing(Image,Seg,5,5,6,100)
select_shape(Seg,H,'area','and',100,2000)
inner_circle(H,Row,Column,Radius)
gen_circle(Circles,Row,Column,Radius)
dev_set_draw('margin')
dev_display(Circles)
read_image(Image,'fabrik')
regiongrowing(Image,Seg,5,5,6,100)
select_shape(Seg,H,'area','and',100,2000)
inner_circle(H,Row,Column,Radius)
gen_circle(Circles,Row,Column,Radius)
dev_set_draw('margin')
dev_display(Circles)
If F is the area of the region and R is the radius of the
inner circle the runtime complexity is O(sqrt(F) * R).
The operator inner_circleinner_circleInnerCircleInnerCircleInnerCircle returns the value 2 (H_MSG_TRUE)
if the input is not empty.
The behavior in case of empty input (no input regions available) is
set via the operator 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>),
the behavior in case of empty region is set 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,
regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing,
connectionconnectionConnectionConnectionConnection,
runlength_featuresrunlength_featuresRunlengthFeaturesRunlengthFeaturesRunlengthFeatures
gen_circlegen_circleGenCircleGenCircleGenCircle,
disp_circledisp_circleDispCircleDispCircleDispCircle
erosion_circleerosion_circleErosionCircleErosionCircleErosionCircle,
inner_rectangle1inner_rectangle1InnerRectangle1InnerRectangle1InnerRectangle1
set_shapeset_shapeSetShapeSetShapeSetShape,
select_shapeselect_shapeSelectShapeSelectShapeSelectShape,
smallest_circlesmallest_circleSmallestCircleSmallestCircleSmallestCircle
Foundation