Class SliceThresholder
Object
SliceThresholder
- Direct Known Subclasses:
SliceThresholderMask
,SliceThresholderWithoutMask
Segmenting a z-
Stack
slice-by-slice.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionSliceThresholder
(BinaryValuesByte binaryValuesByte) Creates a newSliceThresholder
instance. -
Method Summary
Modifier and TypeMethodDescriptionabstract void
segmentAll
(Voxels<?> voxelsIn, Voxels<?> voxelsThreshold, Voxels<UnsignedByteBuffer> voxelsOut) Segments all slices in the input voxels.protected final void
writeOffByte
(int offset, UnsignedByteBuffer bufferOut) Writes the 'off' binary value to the output buffer at the specified offset.protected final void
writeThresholdedByte
(int offset, UnsignedByteBuffer bufferOut, VoxelBuffer<?> bufferIn, VoxelBuffer<?> bufferThreshold) Writes a thresholded value to the output buffer based on the input and threshold buffers.
-
Constructor Details
-
SliceThresholder
Creates a newSliceThresholder
instance.- Parameters:
binaryValuesByte
- The binary values to use for the output.
-
-
Method Details
-
segmentAll
public abstract void segmentAll(Voxels<?> voxelsIn, Voxels<?> voxelsThreshold, Voxels<UnsignedByteBuffer> voxelsOut) Segments all slices in the input voxels. -
writeOffByte
Writes the 'off' binary value to the output buffer at the specified offset.- Parameters:
offset
- the offset in the bufferbufferOut
- the outputUnsignedByteBuffer
-
writeThresholdedByte
protected final void writeThresholdedByte(int offset, UnsignedByteBuffer bufferOut, VoxelBuffer<?> bufferIn, VoxelBuffer<?> bufferThreshold) Writes a thresholded value to the output buffer based on the input and threshold buffers.- Parameters:
offset
- the offset in the buffersbufferOut
- the outputUnsignedByteBuffer
bufferIn
- the inputVoxelBuffer
bufferThreshold
- the thresholdVoxelBuffer
-