public class ScaleAreaAveraging2d<T extends RealType<T>,R extends RealType<R>> extends Object implements OutputAlgorithm<Img<R>>
| Modifier and Type | Field and Description |
|---|---|
protected String |
error |
protected ImgFactory<R> |
imgFactory |
protected RandomAccessibleInterval<T> |
integralImg |
protected Img<R> |
scaled |
protected long[] |
size |
| Constructor and Description |
|---|
ScaleAreaAveraging2d(Img<T> integralImg,
R targetType,
Converter<T,R> converter,
long[] size)
Deprecated.
|
ScaleAreaAveraging2d(Img<T> integralImg,
R targetType,
long[] size)
Deprecated.
|
ScaleAreaAveraging2d(RandomAccessibleInterval<T> integralImg,
R targetType,
Converter<T,R> converter,
long[] size,
ImgFactory<R> imgFactory) |
ScaleAreaAveraging2d(RandomAccessibleInterval<T> integralImg,
R targetType,
long[] size,
ImgFactory<R> imgFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkInput() |
String |
getErrorMessage() |
Img<R> |
getResult() |
protected static boolean |
isIntegerDivision(RandomAccessibleInterval<?> integralImg,
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 ImgFactory<R extends RealType<R>> imgFactory
protected RandomAccessibleInterval<T extends RealType<T>> integralImg
protected String error
protected final long[] size
@Deprecated public ScaleAreaAveraging2d(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(RandomAccessibleInterval<T> integralImg, R targetType, long[] size, 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(Img<T> integralImg, R targetType, Converter<T,R> converter, long[] size)
public ScaleAreaAveraging2d(RandomAccessibleInterval<T> integralImg, R targetType, Converter<T,R> converter, long[] size, 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(RandomAccessibleInterval<?> integralImg, RandomAccessibleInterval<?> scaled)
public String getErrorMessage()
getErrorMessage in interface AlgorithmCopyright © 2015–2022 ImgLib2. All rights reserved.