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 newSliceThresholderinstance. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidsegmentAll(Voxels<?> voxelsIn, Voxels<?> voxelsThreshold, Voxels<UnsignedByteBuffer> voxelsOut) Segments all slices in the input voxels.protected final voidwriteOffByte(int offset, UnsignedByteBuffer bufferOut) Writes the 'off' binary value to the output buffer at the specified offset.protected final voidwriteThresholdedByte(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 newSliceThresholderinstance.- 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 outputUnsignedByteBufferbufferIn- the inputVoxelBufferbufferThreshold- the thresholdVoxelBuffer
-