hull_area_from_masks: Hull area from mask

Description Usage Arguments Details Value Author(s)

Description

From an image mask, it calcultates the hull area of the unmasked object

Usage

1

Arguments

img

A two-dimensional matrix representing an image mask. Any non-zero pixel is considered as part of the oject that wants to be encapsulated.

Details

The mask must be a two-dimensional matrix where 0 values indicate masked pixels, and non-zero values unmasked (selected) pixels. The convex hull is the smallest convex polygon that encapsulates all the unmasked pixels, and this function returns the area of that polygon

Value

The area (in pixels) of the convex hull

Author(s)

Sur Herrera Paredes


surh/RosetteDetector documentation built on May 14, 2019, 10:36 a.m.