T
- the type of the source image.public class MedianFilter2D<T extends RealType<T> & NativeType<T>> extends BenchmarkAlgorithm implements OutputAlgorithm<Img<T>>
For 3D images, the filtering is done only in 2D XY slices. Indeed, this filter is made mainly to remove shot noise on cameras, for which the median calculated on a simple 2D neighborhood is enough.
errorMessage, processingTime
Constructor and Description |
---|
MedianFilter2D(RandomAccessibleInterval<T> source,
int radius)
Instantiate a new median filter that will operate on the specified
source.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
Img<T> |
getResult() |
boolean |
process() |
getErrorMessage, getProcessingTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorMessage
public MedianFilter2D(RandomAccessibleInterval<T> source, int radius)
source
- the source to operate on.radius
- determines the size of the neighborhood. In 2D or 3D, a radius
of 1 will generate a 3x3 neighborhood.public boolean checkInput()
checkInput
in interface Algorithm
public Img<T> getResult()
getResult
in interface OutputAlgorithm<Img<T extends RealType<T> & NativeType<T>>>
Copyright © 2015–2021 Fiji. All rights reserved.