public interface VoxelsArithmetic
Modifier and Type | Method and Description |
---|---|
void |
addTo(ObjectMask object,
int valueToBeAdded)
Adds a constant-value to each voxel but only for voxels inside an object-mask.
|
void |
divideBy(int divisor)
Divides the value of all voxels by a scalar constant.
|
void |
multiplyBy(double factor)
Multiplies the value of all voxels by a factor.
|
void |
multiplyBy(ObjectMask object,
double factor)
Multiplies each voxel by constant factor but only for voxels inside an
ObjectMask . |
void |
subtractFrom(int valueToSubtractFrom)
Subtracts all current voxel-values from a constant-value.
|
void addTo(ObjectMask object, int valueToBeAdded)
object
- object-mask to restrict operation to certain voxels.valueToBeAdded
- constant-value to be added.void multiplyBy(double factor)
factor
- what to multiply-by.void multiplyBy(ObjectMask object, double factor)
ObjectMask
.object
- object-mask to restrict operation to certain voxels.factor
- constant-value to multiply by.void divideBy(int divisor)
divisor
- what to divide-by.void subtractFrom(int valueToSubtractFrom)
i.e. each voxel value v
is updated to become valueToSubtractFrom - v
valueToSubtractFrom
- the value to subtract from.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.