public class NumberChannels extends FeatureImageMetadata
e.g. 3 for RGB or 1 for grayscale.
Constructor and Description |
---|
NumberChannels() |
Modifier and Type | Method and Description |
---|---|
double |
calculate(ImageMetadata metadata)
Calculates the feature-value for a given
ImageMetadata . |
calculate, inputType
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
public double calculate(ImageMetadata metadata) throws FeatureCalculationException
FeatureImageMetadata
ImageMetadata
.calculate
in class FeatureImageMetadata
metadata
- the metadata.FeatureCalculationException
- if the feature-value cannot be calculated.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.