public class ScaleAreaAveraging2d<T extends RealType<T>,R extends RealType<R>> extends Object implements OutputAlgorithm<R>
Modifier and Type | Field and Description |
---|---|
protected String |
error |
protected Image<T> |
integralImg |
protected Image<R> |
scaled |
protected int[] |
size |
Constructor and Description |
---|
ScaleAreaAveraging2d(Image<T> integralImg,
R targetType,
Converter<T,R> converter,
int[] size) |
ScaleAreaAveraging2d(Image<T> integralImg,
R targetType,
int[] size) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
String |
getErrorMessage() |
Image<R> |
getResult() |
protected static boolean |
isIntegerDivision(Image<?> integralImg,
Image<?> scaled)
The dimensions of the integral image are always +1 from the integrated image.
|
boolean |
process() |
void |
setOutputDimensions(int width,
int height) |
protected String error
protected final int[] size
public void setOutputDimensions(int width, int height)
public boolean checkInput()
checkInput
in interface Algorithm
protected static final boolean isIntegerDivision(Image<?> integralImg, Image<?> scaled)
public String getErrorMessage()
getErrorMessage
in interface Algorithm
Copyright © 2015–2021 Fiji. All rights reserved.