public class FilterHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Channel |
applyRankFilter(Channel channel,
int radius,
int filterType)
Applies a 2D rank-filter to each slice independently.
|
static void |
processEachSlice(BinaryVoxels<UnsignedByteBuffer> voxels,
java.util.function.Consumer<ij.process.ImageProcessor> consumer)
Applies a
Consumer to each slice independently of a BinaryVoxels<UnsignedByteBuffer> . |
static void |
processEachSlice(Channel channel,
java.util.function.Consumer<ij.process.ImageProcessor> consumer)
|
public static Channel applyRankFilter(Channel channel, int radius, int filterType) throws OperationFailedException
OperationFailedException
- if channel
contains an unsupported data-type.public static void processEachSlice(Channel channel, java.util.function.Consumer<ij.process.ImageProcessor> consumer) throws ImageJConversionException
Consumer
to each slice independently of a Channel
.
The slice is exposed as a ImageProcessor
.
channel
- the channel whose slices will be processed.consumer
- successively applied to the ImageProcessor
derived from each slice.ImageJConversionException
- if the voxels are neither unsigned byte nor unsigned short
(the only two supported types)public static void processEachSlice(BinaryVoxels<UnsignedByteBuffer> voxels, java.util.function.Consumer<ij.process.ImageProcessor> consumer)
Consumer
to each slice independently of a BinaryVoxels<UnsignedByteBuffer>
.
The slice is exposed as a ImageProcessor
.
voxels
- the voxels whose slices will be processed.consumer
- successively applied to the ImageProcessor
derived from each slice.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.