public class FloydSteinbergDithering<T extends net.imglib2.type.numeric.RealType<T>> extends Object implements OutputAlgorithm<net.imglib2.img.Img<net.imglib2.type.logic.BitType>>, Benchmark
| Constructor and Description |
|---|
FloydSteinbergDithering(net.imglib2.RandomAccessibleInterval<T> img)
Will estimate the dithering threshold by (max - min) / 2
|
FloydSteinbergDithering(net.imglib2.RandomAccessibleInterval<T> img,
float ditheringThreshold) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkInput() |
net.imglib2.img.Img<net.imglib2.type.numeric.real.FloatType> |
createErrorDiffusionKernel(int numDimensions) |
String |
getErrorMessage() |
long |
getProcessingTime() |
net.imglib2.img.Img<net.imglib2.type.logic.BitType> |
getResult() |
boolean |
process() |
public FloydSteinbergDithering(net.imglib2.RandomAccessibleInterval<T> img, float ditheringThreshold)
public FloydSteinbergDithering(net.imglib2.RandomAccessibleInterval<T> img)
public long getProcessingTime()
getProcessingTime in interface Benchmarkpublic net.imglib2.img.Img<net.imglib2.type.logic.BitType> getResult()
getResult in interface OutputAlgorithm<net.imglib2.img.Img<net.imglib2.type.logic.BitType>>public boolean checkInput()
checkInput in interface Algorithmpublic String getErrorMessage()
getErrorMessage in interface Algorithmpublic net.imglib2.img.Img<net.imglib2.type.numeric.real.FloatType> createErrorDiffusionKernel(int numDimensions)
Copyright © 2009–2025 ImgLib2. All rights reserved.