regiongrowing_mean ( Image : Regions : StartRows, StartColumns, Tolerance, MinSize : )

Perform a regiongrowing using mean gray values.

regiongrowing_mean performs a regiongrowing using the mean gray values of a region, starting from points given by StartRows and StartColumns. At any point in the process the mean gray value of the current region is calculated. Gray values at the boundary of the region are added to the region if they differ from the current mean by less than Tolerance. Regions smaller than MinSize are suppressed.

If no starting points are given (empty tuples), the expansion process starts at the upper leftmost point, and is continued with the first unprocessed point after a region has been created.


Parameters

Image (input_object)
image(-array) -> object : byte / int4
Input image.

Regions (output_object)
region-array -> object
Segmented regions.

StartRows (input_control)
point.y(-array) -> integer
Row coordinates of the starting points.
Default value: '[]'
Typical range of values: 0 <= StartRows
Minimum increment: 1
Recommended increment: 1

StartColumns (input_control)
point.x(-array) -> integer
Column coordinates of the starting points.
Default value: '[]'
Typical range of values: 0 <= StartColumns
Minimum increment: 1
Recommended increment: 1

Tolerance (input_control)
number -> real
Maximum deviation from the mean.
Default value: 5.0
Suggested values: 0.5, 1.0, 1.5, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 12.0, 15.0, 17.0, 20.0, 25.0, 30.0, 40.0
Restriction: Tolerance > 0.0

MinSize (input_control)
integer -> integer
Minimum size of a region.
Default value: 100
Suggested values: 0, 10, 30, 50, 100, 500, 1000, 2000
Typical range of values: 0 <= MinSize
Minimum increment: 1
Recommended increment: 100
Restriction: MinSize >= 0


Result

regiongrowing_mean returns 2 (H_MSG_TRUE) if all parameters are correct. The behavior with respect to the input images and output regions can be determined by setting the values of the flags 'no_object_result', 'empty_region_result', and 'store_empty_region' with set_system. If necessary, an exception is raised.


Parallelization Information

regiongrowing_mean is reentrant and automatically parallelized (on tuple level).


Possible Predecessors

gauss_image, sigma_image, anisotropic_diffusion, median_image, mean_image


Possible Successors

select_shape, reduce_domain, opening, expand_region


Alternatives

regiongrowing, regiongrowing_n


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH