public class MorphometricFeatures2D extends AlgoStub
Usage:
ResultsTable table = new MorphometricFeatures2D()
.add(Feature.AREA)
.add(Feature.PERIMETER)
.add(Feature.CENTROID)
.computeTable(imagePlus);
Alternative:
MorphometricFeatures2D morpho = new MorphometricFeatures2D(
Feature.AREA, Feature.PERIMETER, Feature.CENTROID);
ResultsTable table = morpho.computeTable(imagePlus);
MorphometricFeatures3D| Modifier and Type | Class and Description |
|---|---|
static class |
MorphometricFeatures2D.Feature
An enumeration used to identify which features have to be
computed by the MorphometricFeatures2D class.
|
| Constructor and Description |
|---|
MorphometricFeatures2D()
Creates a new MorphometricFeatures2D instance containing no feature.
|
MorphometricFeatures2D(MorphometricFeatures2D.Feature... features)
Creates a new instance of MorphometricFeatures2D from the series of selected
features.
|
| Modifier and Type | Method and Description |
|---|---|
MorphometricFeatures2D |
add(MorphometricFeatures2D.Feature f)
Adds a new feature to the collection of features to compute.
|
ij.measure.ResultsTable |
computeTable(ij.ImagePlus imagePlus)
Computes a set of descriptive features from a label image and
concatenates the results into a ResultsTable.
|
boolean |
contains(MorphometricFeatures2D.Feature f)
Checks if this MorphometricFeatures2D instance contains the specified
feature.
|
boolean |
containsAny(MorphometricFeatures2D.Feature... features)
Checks if this MorphometricFeatures2D instance contains any of the
specified features.
|
Collection<MorphometricFeatures2D.Feature> |
features()
Returns the features this MorphometricFeatures2D instance will compute.
|
MorphometricFeatures2D |
remove(MorphometricFeatures2D.Feature f)
Removes a feature from the collection of features to compute.
|
addAlgoListener, fireProgressChanged, fireProgressChanged, fireStatusChanged, fireStatusChanged, removeAlgoListenerpublic MorphometricFeatures2D()
public MorphometricFeatures2D(MorphometricFeatures2D.Feature... features)
features - the features to use.public Collection<MorphometricFeatures2D.Feature> features()
public MorphometricFeatures2D add(MorphometricFeatures2D.Feature f)
f - the feature to addpublic MorphometricFeatures2D remove(MorphometricFeatures2D.Feature f)
f - the feature to removepublic boolean contains(MorphometricFeatures2D.Feature f)
f - the feature to testpublic boolean containsAny(MorphometricFeatures2D.Feature... features)
features - the list of features to testpublic ij.measure.ResultsTable computeTable(ij.ImagePlus imagePlus)
imagePlus - the image to analyze.Copyright © 2014–2024 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.