hullFeatures {EBImage}R Documentation

Extraction of hull features from image objects

Description

Computes hull features from image objects.

Usage

  hullFeatures(x)

Arguments

x An Image object or an array containing object masks. Object masks are sets of pixels with the same unique integer value.

Details

Extracted object features are:

The features g.theta, g.l1, g.l2, g.ecc, g.I1, g.I2 are computed with the function moments using the binary objects as intensity values, e.g. g.theta = moment(x,x>0)[, 'm.theta']. See moments for details on properties of these features.

Value

A matrix (or a list of matrices if x contains multiple frames) of features computed of the objects present in x.

Author(s)

Oleg Sklyar, osklyar@ebi.ac.uk, 2007

See Also

moments, getFeatures

Examples

  x = readImage(system.file('images', 'shapes.png', package='EBImage'))
  x = x[110:512,1:130]
  y = bwlabel(x)
  if (interactive()) display(normalize(y), title='Objects')

  ## hullFeatures
  hf = hullFeatures(y)
  print(hf)
        

[Package EBImage version 3.0.5 Index]