54 explicit Region(
const std::vector<peak::common::Point>& points);
117 PEAK_ICV_NO_DISCARD std::vector<peak::common::Point>
GetPoints()
const;
139 PEAK_ICV_NO_DISCARD
size_t GetArea()
const;
249 friend peak::common::detail::BackendAccessor<Region>;
251 explicit Region(peak_icv_region_handle regionHandle)
noexcept;
255 peak_icv_region_handle m_regionHandle{};
A generic rectangle defined by a point and a size.
Represents a two-dimensional size with non-negative width and height.
For detailed information about the use of ids_peak_icv Image refer to the Image Guide.
Base class for all drawables.
A region consists of a set of points in the image plane.
Region Dilation(const Region &structuringElement) const
Performs morphological dilation on the input region using the specified structuring element.
peak::common::PointF GetCenterOfGravity() const
Calculates the center of gravity of a region.
std::vector< Region > GetConnectedComponents() const
Calculates the connected components of the region.
bool operator==(const Region &rhs) const
Region Difference(const Region &other) const
Calculates the difference of two regions.
Region Erosion(const Region &structuringElement) const
Performs morphological erosion on the input region using the specified structuring element.
size_t GetArea() const
Calculates the area of a region.
Region Scale(const peak::common::Size &inputSize, const peak::common::Size &outputSize, const Interpolation &interpolation=Interpolation::NearestNeighbor) const
Returns a scaled region.
Region()
Creates an empty Region.
Region Union(const Region &other) const
Calculates the union of two regions.
bool operator!=(const Region &rhs) const
Region Intersection(const Region &other) const
Calculates the intersection of two regions.
Region & operator=(const Region &other)
std::vector< peak::common::Point > GetPoints() const
Returns the points from a region.
peak::common::detail::c_type_of_t< Type > * handle_of_t