Skip to content

RegionsπŸ”—

On this topicπŸ”—

AccessπŸ”—

get_region_contourGetRegionContour: Access the contour of an object.

get_region_convexGetRegionConvex: Access convex hull as contour.

get_region_pointsGetRegionPoints: Access the pixels of a region.

get_region_polygonGetRegionPolygon: Polygon approximation of a region.

get_region_runsGetRegionRuns: Access the runlength coding of a region.

CreationπŸ”—

gen_checker_regionGenCheckerRegion: Create a checkered region.

gen_circleGenCircle: Create a circle.

gen_circle_sectorGenCircleSector: Create a circle sector.

gen_ellipseGenEllipse: Create an ellipse.

gen_ellipse_sectorGenEllipseSector: Create an ellipse sector.

gen_empty_regionGenEmptyRegion: Create an empty region.

gen_grid_regionGenGridRegion: Create a region from lines or pixels.

gen_random_regionGenRandomRegion: Create a random region.

gen_random_regionsGenRandomRegions: Create random regions like circles, rectangles and ellipses.

gen_rectangle1GenRectangle1: Create a rectangle parallel to the coordinate axes.

gen_rectangle2GenRectangle2: Create a rectangle of any orientation.

gen_region_contour_xldGenRegionContourXld: Create a region from an XLD contour.

gen_region_histoGenRegionHisto: Convert a histogram into a region.

gen_region_hlineGenRegionHline: Store input lines described in Hesse normal form as regions.

gen_region_lineGenRegionLine: Store input lines as regions.

gen_region_pointsGenRegionPoints: Store individual pixels as image region.

gen_region_polygonGenRegionPolygon: Store a polygon as a region.

gen_region_polygon_filledGenRegionPolygonFilled: Store a polygon as a β€œfilled” region.

gen_region_polygon_xldGenRegionPolygonXld: Create a region from an XLD polygon.

gen_region_runsGenRegionRuns: Create a region from a runlength coding.

label_to_regionLabelToRegion: Extract regions with equal gray values from an image.

FeaturesπŸ”—

area_centerAreaCenter: Area and center of regions.

area_holesAreaHoles: Compute the area of holes of regions.

circularityCircularity: Shape factor for the circularity (similarity to a circle) of a region.

compactnessCompactness: Shape factor for the compactness of a region.

connect_and_holesConnectAndHoles: Number of connection components and holes

contlengthContlength: Contour length of a region.

convexityConvexity: Shape factor for the convexity of a region.

diameter_regionDiameterRegion: Maximal distance between two boundary points of a region.

eccentricityEccentricity: Shape features derived from the ellipse parameters.

elliptic_axisEllipticAxis: Calculate the parameters of the equivalent ellipse.

euler_numberEulerNumber: Calculate the Euler number.

find_neighborsFindNeighbors: Search direct neighbors.

get_region_indexGetRegionIndex: Index of all regions containing a given pixel.

get_region_thicknessGetRegionThickness: Access the thickness of a region along the main axis.

hamming_distanceHammingDistance: Hamming distance between two regions.

hamming_distance_normHammingDistanceNorm: Hamming distance between two regions using normalization.

height_width_ratioHeightWidthRatio: Compute the width, height, and aspect ratio of the surrounding rectangle parallel to the coordinate axes.

inner_circleInnerCircle: Largest inner circle of a region.

inner_rectangle1InnerRectangle1: Largest inner rectangle of a region.

moments_region_2ndMomentsRegion2nd: Calculate the geometric moments of regions.

moments_region_2nd_invarMomentsRegion2ndInvar: Geometric moments of regions.

moments_region_2nd_rel_invarMomentsRegion2ndRelInvar: Geometric moments of regions.

moments_region_3rdMomentsRegion3rd: Geometric moments of regions.

moments_region_3rd_invarMomentsRegion3rdInvar: Geometric moments of regions.

moments_region_centralMomentsRegionCentral: Geometric moments of regions.

moments_region_central_invarMomentsRegionCentralInvar: Geometric moments of regions.

orientation_regionOrientationRegion: Orientation of a region.

rectangularityRectangularity: Shape factor for the rectangularity of a region.

region_featuresRegionFeatures: Calculate shape features of regions.

roundnessRoundness: Shape factors from contour.

runlength_distributionRunlengthDistribution: Distribution of runs needed for runlength encoding of a region.

runlength_featuresRunlengthFeatures: Characteristic values for runlength coding of regions.

select_region_pointSelectRegionPoint: Choose all regions containing a given pixel.

select_region_spatialSelectRegionSpatial: Pose relation of regions.

select_shapeSelectShape: Choose regions with the aid of shape features.

select_shape_protoSelectShapeProto: Choose regions having a certain relation to each other.

select_shape_stdSelectShapeStd: Select regions of a given shape.

smallest_circleSmallestCircle: Smallest surrounding circle of a region.

smallest_rectangle1SmallestRectangle1: Surrounding rectangle parallel to the coordinate axes.

smallest_rectangle2SmallestRectangle2: Smallest surrounding rectangle with any orientation.

spatial_relationSpatialRelation: Pose relation of regions with regard to  the coordinate axes.

Geometric TransformationsπŸ”—

affine_trans_regionAffineTransRegion: Apply an arbitrary affine 2D transformation to regions.

mirror_regionMirrorRegion: Reflect a region about an axis.

move_regionMoveRegion: Translate a region.

polar_trans_regionPolarTransRegion: Transform a region within an annular arc to polar coordinates.

polar_trans_region_invPolarTransRegionInv: Transform a region in polar coordinates back to Cartesian coordinates.

projective_trans_regionProjectiveTransRegion: Apply a projective transformation to a region.

transpose_regionTransposeRegion: Reflect a region about a point.

zoom_regionZoomRegion: Zoom a region.

SetsπŸ”—

complementComplement: Return the complement of a region.

differenceDifference: Calculate the difference of two regions.

intersectionIntersection: Calculate the intersection of two regions.

symm_differenceSymmDifference: Calculate the symmetric difference of two regions.

union1Union1: Return the union of all input regions.

union2Union2: Return the union of two regions.

TestsπŸ”—

test_equal_regionTestEqualRegion: Test whether the regions of two objects are identical.

test_region_pointTestRegionPoint: Test if the region contains a given point.

test_region_pointsTestRegionPoints: Test if points are contained in regions.

test_subset_regionTestSubsetRegion: Test whether a region is contained in another region.

TransformationsπŸ”—

background_segBackgroundSeg: Determine the connected components of the background of given regions.

clip_regionClipRegion: Clip a region to a rectangle.

clip_region_relClipRegionRel: Clip a region relative to its smallest surrounding rectangle.

closest_point_transformClosestPointTransform: Compute the closest-point transformation of a region.

connectionConnection: Compute connected components of a region.

distance_transformDistanceTransform: Compute the distance transformation of a region.

eliminate_runsEliminateRuns: Eliminate runs of a given length.

expand_regionExpandRegion: Fill gaps between regions or split overlapping regions.

fill_upFillUp: Fill up holes in regions.

fill_up_shapeFillUpShape: Fill up holes in regions having given shape features.

junctions_skeletonJunctionsSkeleton: Find junctions and end points in a skeleton.

merge_regions_line_scanMergeRegionsLineScan: Merge regions from line scan images.

partition_dynamicPartitionDynamic: Partition a region horizontally at positions of small vertical extent.

partition_rectanglePartitionRectangle: Partition a region into rectangles of approximately equal size.

rank_regionRankRegion: Rank operator for regions.

remove_noise_regionRemoveNoiseRegion: Remove noise from a region.

shape_transShapeTrans: Transform the shape of a region.

skeletonSkeleton: Compute the skeleton of a region.

sort_regionSortRegion: Sorting of regions with respect to their relative position.

split_skeleton_linesSplitSkeletonLines: Split lines represented by one pixel wide, non-branching lines.

split_skeleton_regionSplitSkeletonRegion: Split lines represented by one pixel wide, non-branching regions.