region_props: Measure properties of different regions in a labelled image.

View source: R/measurements.R

region_propsR Documentation

Measure properties of different regions in a labelled image.

Description

Given a labelled image (e.g., result of connected), extract properties of different regions.

Usage

region_props(label_im, intensity_im = NULL, points = NULL)

Arguments

label_im

im Label input image for whcih properties are extracted for each label.

intensity_im

im Intensity image with same dimensions as label image.

points

ppp Point pattern with a window matching the dimensions of the input label image.

Value

list List of region properties. The following properties can be accessed as methods for each region.

  • area: Numeric Numeric value representing the area of the region.

  • bbox: owin Rectangular window representing the smallest rectangle that encloses the region.

  • centroid: list List containing x and y coordinates of the region.

  • diameter: Numeric Numeric value representing the size of the largest line that can be drawn across the region.

  • perimeter: Numeric Numeric value representing the perimeter around the region.

Note: the values are only computed when the method is called for a specific region i.e., they are lazy. This means you can filter on a specific property without needing to compute all properties.

See Also

connected im


keithschulze/supr documentation built on Nov. 26, 2022, 7:09 a.m.