Class CountEqual
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<org.anchoranalysis.feature.bean.Feature<T>,org.anchoranalysis.feature.initialization.FeatureInitialization>
org.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject
org.anchoranalysis.plugin.image.feature.bean.object.single.energy.SpecificEnergyChannelBase
org.anchoranalysis.plugin.image.feature.bean.object.single.energy.CountEqual
public class CountEqual extends SpecificEnergyChannelBase
Counts the number of voxels in an object that have a specific intensity value in a channel.
-
Constructor Summary
Constructors Constructor Description CountEqual() -
Method Summary
Modifier and Type Method Description protected doublecalculateWithChannel(org.anchoranalysis.image.voxel.object.ObjectMask object, org.anchoranalysis.image.core.channel.Channel channel)Calculates the number of voxels in the object that have the specified intensity value in the channel.intgetValue()The intensity value to count.voidsetValue(int value)The intensity value to count.Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.object.single.energy.SpecificEnergyChannelBase
calculate, getEnergyIndex, setEnergyIndexMethods inherited from class org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject
inputTypeMethods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toStringMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
-
Constructor Details
-
CountEqual
public CountEqual()
-
-
Method Details
-
calculateWithChannel
protected double calculateWithChannel(org.anchoranalysis.image.voxel.object.ObjectMask object, org.anchoranalysis.image.core.channel.Channel channel) throws org.anchoranalysis.feature.calculate.FeatureCalculationExceptionCalculates the number of voxels in the object that have the specified intensity value in the channel.- Specified by:
calculateWithChannelin classSpecificEnergyChannelBase- Parameters:
object- theObjectMaskdefining the region of interestchannel- theChannelto analyze- Returns:
- the count of voxels with the specified intensity value
- Throws:
org.anchoranalysis.feature.calculate.FeatureCalculationException- if the calculation fails
-
getValue
public int getValue()The intensity value to count. Defaults to the 'on' value ofBinaryValuesInt. -
setValue
public void setValue(int value)The intensity value to count. Defaults to the 'on' value ofBinaryValuesInt.
-