public class BitDepthPerChannel extends FeatureImageMetadata
This is the number if bits needed to describe each channel.
e.g. 8-bit for byte versus 16-bit for short etc.
Constructor and Description |
---|
BitDepthPerChannel() |
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.