Class NormalizeByConstant
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,org.anchoranalysis.image.bean.nonbean.init.ImageInitialization>
org.anchoranalysis.image.bean.ImageBean<org.anchoranalysis.image.feature.bean.VoxelScore>
org.anchoranalysis.image.feature.bean.VoxelScore
org.anchoranalysis.plugin.image.feature.bean.score.SingleChannel
org.anchoranalysis.plugin.image.feature.bean.score.NormalizeByConstant
public class NormalizeByConstant extends SingleChannel
Normalizes the voxel intensity by dividing it by a constant value.
This class extends SingleChannel to process a single channel of voxel intensities.
-
Constructor Summary
Constructors Constructor Description NormalizeByConstant() -
Method Summary
Modifier and Type Method Description protected doublederiveScoreFromVoxel(int voxelIntensity)Derives a score from a single voxel intensity.doublegetValue()The constant value to divide the voxel intensity by.voidsetValue(double value)The constant value to divide the voxel intensity by.Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.score.SingleChannel
calculate, getEnergyChannelIndex, setEnergyChannelIndexMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
-
Constructor Details
-
NormalizeByConstant
public NormalizeByConstant()
-
-
Method Details
-
deriveScoreFromVoxel
protected double deriveScoreFromVoxel(int voxelIntensity)Description copied from class:SingleChannelDerives a score from a single voxel intensity.- Specified by:
deriveScoreFromVoxelin classSingleChannel- Parameters:
voxelIntensity- the intensity of the voxel in the specified energy channel- Returns:
- the calculated score for the voxel
-
getValue
public double getValue()The constant value to divide the voxel intensity by.Default value is 255, which is typical for 8-bit image normalization.
-
setValue
public void setValue(double value)The constant value to divide the voxel intensity by.Default value is 255, which is typical for 8-bit image normalization.
-