Class SubtractFromConstant
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
Subtracts each voxel value in a channel from a constant value.
This class extends ArithmeticWithConstantBase to perform a pixel-wise subtraction
operation where a constant value is subtracted by each voxel value in the input channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intperformBinaryOperation(int voxel, int constant) The binary arithmetic operation that combines the voxel-value and the constant-value.Methods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.arithmetic.ArithmeticWithConstantBase
createFromChannelWithConstantMethods inherited from class org.anchoranalysis.plugin.image.bean.channel.provider.UnaryWithValueBase
createFromChannel, getValue, setValueMethods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary
get, getChannel, setChannelMethods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
getAsStackMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
SubtractFromConstant
public SubtractFromConstant()
-
-
Method Details
-
performBinaryOperation
protected int performBinaryOperation(int voxel, int constant) Description copied from class:ArithmeticWithConstantBaseThe binary arithmetic operation that combines the voxel-value and the constant-value.- Specified by:
performBinaryOperationin classArithmeticWithConstantBase- Parameters:
voxel- the value of the current voxelconstant- the constant value to be used in the operation- Returns:
- the result of the binary operation
-