public class ScaleAreaAveraging2d<T extends net.imglib2.type.numeric.RealType<T>,R extends net.imglib2.type.numeric.RealType<R>> extends Object implements OutputAlgorithm<net.imglib2.img.Img<R>>
| Modifier and Type | Field and Description |
|---|---|
protected String |
error |
protected net.imglib2.img.ImgFactory<R> |
imgFactory |
protected net.imglib2.RandomAccessibleInterval<T> |
integralImg |
protected net.imglib2.img.Img<R> |
scaled |
protected long[] |
size |
| Constructor and Description |
|---|
ScaleAreaAveraging2d(net.imglib2.img.Img<T> integralImg,
R targetType,
net.imglib2.converter.Converter<T,R> converter,
long[] size)
Deprecated.
|
ScaleAreaAveraging2d(net.imglib2.img.Img<T> integralImg,
R targetType,
long[] size)
Deprecated.
|
ScaleAreaAveraging2d(net.imglib2.RandomAccessibleInterval<T> integralImg,
R targetType,
net.imglib2.converter.Converter<T,R> converter,
long[] size,
net.imglib2.img.ImgFactory<R> imgFactory) |
ScaleAreaAveraging2d(net.imglib2.RandomAccessibleInterval<T> integralImg,
R targetType,
long[] size,
net.imglib2.img.ImgFactory<R> imgFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkInput() |
String |
getErrorMessage() |
net.imglib2.img.Img<R> |
getResult() |
protected static boolean |
isIntegerDivision(net.imglib2.RandomAccessibleInterval<?> integralImg,
net.imglib2.RandomAccessibleInterval<?> scaled)
The dimensions of the integral image are always +1 from the integrated
image.
|
boolean |
process() |
void |
setOutputDimensions(long width,
long height)
Set the desired dimensions of the scaled image obtainable after invoking
process() via getResult(). |
protected net.imglib2.img.ImgFactory<R extends net.imglib2.type.numeric.RealType<R>> imgFactory
protected net.imglib2.img.Img<R extends net.imglib2.type.numeric.RealType<R>> scaled
protected net.imglib2.RandomAccessibleInterval<T extends net.imglib2.type.numeric.RealType<T>> integralImg
protected String error
protected final long[] size
@Deprecated public ScaleAreaAveraging2d(net.imglib2.img.Img<T> integralImg, R targetType, long[] size)
integralImg - The instance of IntegralImg or equivalent.targetType - The desired type of the scaled image.size - The target dimensions of the desired scaled image.public ScaleAreaAveraging2d(net.imglib2.RandomAccessibleInterval<T> integralImg, R targetType, long[] size, net.imglib2.img.ImgFactory<R> imgFactory)
integralImg - The instance of IntegralImg or equivalent.targetType - The desired type of the scaled image.size - The target dimensions of the desired scaled image.@Deprecated public ScaleAreaAveraging2d(net.imglib2.img.Img<T> integralImg, R targetType, net.imglib2.converter.Converter<T,R> converter, long[] size)
public ScaleAreaAveraging2d(net.imglib2.RandomAccessibleInterval<T> integralImg, R targetType, net.imglib2.converter.Converter<T,R> converter, long[] size, net.imglib2.img.ImgFactory<R> imgFactory)
public void setOutputDimensions(long width,
long height)
process() via getResult().width - height - public boolean checkInput()
checkInput in interface Algorithmprotected static final boolean isIntegerDivision(net.imglib2.RandomAccessibleInterval<?> integralImg, net.imglib2.RandomAccessibleInterval<?> scaled)
public String getErrorMessage()
getErrorMessage in interface Algorithmpublic net.imglib2.img.Img<R> getResult()
getResult in interface OutputAlgorithm<net.imglib2.img.Img<R extends net.imglib2.type.numeric.RealType<R>>>Copyright © 2009–2025 ImgLib2. All rights reserved.