R
- The type of the input image.T
- The type of the integral image.public class IntegralImage<R extends NumericType<R>,T extends NumericType<T>> extends Object implements OutputAlgorithm<T>
Converter
defines howto convert from Type to .
Sums are done with the precision of and then set to the integral image type,
which may crop the values according to the type's capabilities.Modifier and Type | Field and Description |
---|---|
protected Converter<R,T> |
converter |
protected Image<R> |
img |
protected Image<T> |
integral |
protected T |
type |
Constructor and Description |
---|
IntegralImage(Image<R> img,
T type,
Converter<R,T> converter) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
String |
getErrorMessage() |
static long |
getNumPixels(int[] size) |
Image<T> |
getResult() |
protected void |
integrateLine(int d,
LocalizableByDimCursor<T> cursor,
T sum,
int size) |
protected void |
integrateLineDim0(Converter<R,T> converter,
LocalizableByDimCursor<R> cursorIn,
LocalizableByDimCursor<T> cursorOut,
T sum,
T tmpVar,
int size) |
boolean |
process() |
protected final Image<R extends NumericType<R>> img
protected final T extends NumericType<T> type
protected Image<T extends NumericType<T>> integral
protected final Converter<R extends NumericType<R>,T extends NumericType<T>> converter
public static final long getNumPixels(int[] size)
protected void integrateLineDim0(Converter<R,T> converter, LocalizableByDimCursor<R> cursorIn, LocalizableByDimCursor<T> cursorOut, T sum, T tmpVar, int size)
protected void integrateLine(int d, LocalizableByDimCursor<T> cursor, T sum, int size)
public boolean checkInput()
checkInput
in interface Algorithm
public String getErrorMessage()
getErrorMessage
in interface Algorithm
public Image<T> getResult()
getResult
in interface OutputAlgorithm<T extends NumericType<T>>
Copyright © 2015–2021 Fiji. All rights reserved.