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 double calculateWithChannel​(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.
    int getValue()
    The intensity value to count.
    void setValue​(int value)
    The intensity value to count.

    Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.object.single.energy.SpecificEnergyChannelBase

    calculate, getEnergyIndex, setEnergyIndex

    Methods inherited from class org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject

    inputType

    Methods inherited from class org.anchoranalysis.feature.bean.Feature

    assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString

    Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean

    getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • 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.FeatureCalculationException
      Calculates the number of voxels in the object that have the specified intensity value in the channel.
      Specified by:
      calculateWithChannel in class SpecificEnergyChannelBase
      Parameters:
      object - the ObjectMask defining the region of interest
      channel - the Channel to 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 of BinaryValuesInt.
    • setValue

      public void setValue​(int value)
      The intensity value to count. Defaults to the 'on' value of BinaryValuesInt.