Interface VoxelsArithmetic
public interface VoxelsArithmetic
Allows manipulation of voxel intensities via arithmetic operations.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTo(ObjectMask object, int valueToBeAdded) Adds a constant-value to each voxel but only for voxels inside an object-mask.voiddivideBy(int divisor) Divides the value of all voxels by a scalar constant.voidmultiplyBy(double factor) Multiplies the value of all voxels by a factor.voidmultiplyBy(ObjectMask object, double factor) Multiplies each voxel by constant factor but only for voxels inside anObjectMask.voidsubtractFrom(int valueToSubtractFrom) Subtracts all current voxel-values from a constant-value.
-
Method Details
-
addTo
Adds a constant-value to each voxel but only for voxels inside an object-mask.- Parameters:
object- object-mask to restrict operation to certain voxels.valueToBeAdded- constant-value to be added.
-
multiplyBy
void multiplyBy(double factor) Multiplies the value of all voxels by a factor.- Parameters:
factor- what to multiply-by.
-
multiplyBy
Multiplies each voxel by constant factor but only for voxels inside anObjectMask.- Parameters:
object- object-mask to restrict operation to certain voxels.factor- constant-value to multiply by.
-
divideBy
void divideBy(int divisor) Divides the value of all voxels by a scalar constant.- Parameters:
divisor- what to divide-by.
-
subtractFrom
void subtractFrom(int valueToSubtractFrom) Subtracts all current voxel-values from a constant-value.i.e. each voxel value
vis updated to becomevalueToSubtractFrom - v- Parameters:
valueToSubtractFrom- the value to subtract from.
-