Class IntensityMeanMaxSlice
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.intensity.FeatureEnergyChannel
org.anchoranalysis.plugin.image.feature.bean.object.single.intensity.IntensityMeanMaxSlice
public class IntensityMeanMaxSlice extends FeatureEnergyChannel
Calculates the maximum mean intensity across all slices of an object in a channel.
-
Constructor Summary
Constructors Constructor Description IntensityMeanMaxSlice() -
Method Summary
Modifier and Type Method Description protected doublecalculateForChannel(org.anchoranalysis.feature.calculate.FeatureCalculationInput<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> input, org.anchoranalysis.image.core.channel.Channel channel)Calculates the maximum mean intensity across all slices of the object in the given channel.intgetEmptyValue()The value to return when the object has no voxels in any slice.booleanisExcludeZero()If true, zero-valued voxels are excluded from the mean intensity calculation.voidsetEmptyValue(int emptyValue)The value to return when the object has no voxels in any slice.voidsetExcludeZero(boolean excludeZero)If true, zero-valued voxels are excluded from the mean intensity calculation.Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.object.single.intensity.FeatureEnergyChannel
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
-
IntensityMeanMaxSlice
public IntensityMeanMaxSlice()
-
-
Method Details
-
calculateForChannel
protected double calculateForChannel(org.anchoranalysis.feature.calculate.FeatureCalculationInput<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> input, org.anchoranalysis.image.core.channel.Channel channel) throws org.anchoranalysis.feature.calculate.FeatureCalculationExceptionCalculates the maximum mean intensity across all slices of the object in the given channel.- Specified by:
calculateForChannelin classFeatureEnergyChannel- Parameters:
input- theFeatureCalculationInputcontaining theFeatureInputSingleObjectchannel- theChannelto calculate the intensity from- Returns:
- the maximum mean intensity across all slices, or
emptyValueif the object has no voxels - Throws:
org.anchoranalysis.feature.calculate.FeatureCalculationException- if the calculation fails
-
isExcludeZero
public boolean isExcludeZero()If true, zero-valued voxels are excluded from the mean intensity calculation. -
setExcludeZero
public void setExcludeZero(boolean excludeZero)If true, zero-valued voxels are excluded from the mean intensity calculation. -
getEmptyValue
public int getEmptyValue()The value to return when the object has no voxels in any slice. -
setEmptyValue
public void setEmptyValue(int emptyValue)The value to return when the object has no voxels in any slice.
-