Regionsπ
On this topicπ
Accessπ
get_region_contour: Access the contour of an object.
get_region_convex: Access convex hull as contour.
get_region_points: Access the pixels of a region.
get_region_polygon: Polygon approximation of a region.
get_region_runs: Access the runlength coding of a region.
Creationπ
gen_checker_region: Create a checkered region.
gen_circle: Create a circle.
gen_circle_sector: Create a circle sector.
gen_ellipse: Create an ellipse.
gen_ellipse_sector: Create an ellipse sector.
gen_empty_region: Create an empty region.
gen_grid_region: Create a region from lines or pixels.
gen_random_region: Create a random region.
gen_random_regions: Create random regions like circles, rectangles and ellipses.
gen_rectangle1: Create a rectangle parallel to the coordinate axes.
gen_rectangle2: Create a rectangle of any orientation.
gen_region_contour_xld: Create a region from an XLD contour.
gen_region_histo: Convert a histogram into a region.
gen_region_hline: Store input lines described in Hesse normal form as regions.
gen_region_line: Store input lines as regions.
gen_region_points: Store individual pixels as image region.
gen_region_polygon: Store a polygon as a region.
gen_region_polygon_filled: Store a polygon as a βfilledβ region.
gen_region_polygon_xld: Create a region from an XLD polygon.
gen_region_runs: Create a region from a runlength coding.
label_to_region: Extract regions with equal gray values from an image.
Featuresπ
area_center: Area and center of regions.
area_holes: Compute the area of holes of regions.
circularity: Shape factor for the circularity (similarity to a circle) of a region.
compactness: Shape factor for the compactness of a region.
connect_and_holes: Number of connection components and holes
contlength: Contour length of a region.
convexity: Shape factor for the convexity of a region.
diameter_region: Maximal distance between two boundary points of a region.
eccentricity: Shape features derived from the ellipse parameters.
elliptic_axis: Calculate the parameters of the equivalent ellipse.
euler_number: Calculate the Euler number.
find_neighbors: Search direct neighbors.
get_region_index: Index of all regions containing a given pixel.
get_region_thickness: Access the thickness of a region along the main axis.
hamming_distance: Hamming distance between two regions.
hamming_distance_norm: Hamming distance between two regions using normalization.
height_width_ratio: Compute the width, height, and aspect ratio of the surrounding
rectangle parallel to the coordinate axes.
inner_circle: Largest inner circle of a region.
inner_rectangle1: Largest inner rectangle of a region.
moments_region_2nd: Calculate the geometric moments of regions.
moments_region_2nd_invar: Geometric moments of regions.
moments_region_2nd_rel_invar: Geometric moments of regions.
moments_region_3rd: Geometric moments of regions.
moments_region_3rd_invar: Geometric moments of regions.
moments_region_central: Geometric moments of regions.
moments_region_central_invar: Geometric moments of regions.
orientation_region: Orientation of a region.
rectangularity: Shape factor for the rectangularity of a region.
region_features: Calculate shape features of regions.
roundness: Shape factors from contour.
runlength_distribution: Distribution of runs needed for runlength encoding of a region.
runlength_features: Characteristic values for runlength coding of regions.
select_region_point: Choose all regions containing a given pixel.
select_region_spatial: Pose relation of regions.
select_shape: Choose regions with the aid of shape features.
select_shape_proto: Choose regions having a certain relation to each other.
select_shape_std: Select regions of a given shape.
smallest_circle: Smallest surrounding circle of a region.
smallest_rectangle1: Surrounding rectangle parallel to the coordinate axes.
smallest_rectangle2: Smallest surrounding rectangle with any orientation.
spatial_relation: Pose relation of regions with regard to the coordinate axes.
Geometric Transformationsπ
affine_trans_region: Apply an arbitrary affine 2D transformation to regions.
mirror_region: Reflect a region about an axis.
move_region: Translate a region.
polar_trans_region: Transform a region within an annular arc to polar coordinates.
polar_trans_region_inv: Transform a region in polar coordinates back to Cartesian
coordinates.
projective_trans_region: Apply a projective transformation to a region.
transpose_region: Reflect a region about a point.
zoom_region: Zoom a region.
Setsπ
complement: Return the complement of a region.
difference: Calculate the difference of two regions.
intersection: Calculate the intersection of two regions.
symm_difference: Calculate the symmetric difference of two regions.
union1: Return the union of all input regions.
union2: Return the union of two regions.
Testsπ
test_equal_region: Test whether the regions of two objects are identical.
test_region_point: Test if the region contains a given point.
test_region_points: Test if points are contained in regions.
test_subset_region: Test whether a region is contained in another region.
Transformationsπ
background_seg: Determine the connected components of the background of given regions.
clip_region: Clip a region to a rectangle.
clip_region_rel: Clip a region relative to its smallest surrounding rectangle.
closest_point_transform: Compute the closest-point transformation of a region.
connection: Compute connected components of a region.
distance_transform: Compute the distance transformation of a region.
eliminate_runs: Eliminate runs of a given length.
expand_region: Fill gaps between regions or split overlapping regions.
fill_up: Fill up holes in regions.
fill_up_shape: Fill up holes in regions having given shape features.
junctions_skeleton: Find junctions and end points in a skeleton.
merge_regions_line_scan: Merge regions from line scan images.
partition_dynamic: Partition a region horizontally at positions of small vertical extent.
partition_rectangle: Partition a region into rectangles of approximately equal size.
rank_region: Rank operator for regions.
remove_noise_region: Remove noise from a region.
shape_trans: Transform the shape of a region.
skeleton: Compute the skeleton of a region.
sort_region: Sorting of regions with respect to their relative position.
split_skeleton_lines: Split lines represented by one pixel wide, non-branching lines.
split_skeleton_region: Split lines represented by one pixel wide, non-branching regions.