R - The type of the input image.T - The type of the integral image.public class IntegralImg<R extends net.imglib2.type.numeric.NumericType<R>,T extends net.imglib2.type.numeric.NumericType<T> & net.imglib2.type.NativeType<T>> extends Object implements OutputAlgorithm<net.imglib2.img.Img<T>>
<T>. Care
must be taken that sums do not overflow the capacity of type <T>.
The integral image will be one pixel larger in each dimension as for easy
computation of sums it has to contain "zeros" at the beginning of each
dimension
The Converter defines howto convert from Type <R> to <T>.
Sums are done with the precision of <T> 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 net.imglib2.converter.Converter<R,T> |
converter |
protected net.imglib2.RandomAccessibleInterval<R> |
img |
protected net.imglib2.img.Img<T> |
integral |
protected int |
order |
protected T |
type |
| Constructor and Description |
|---|
IntegralImg(net.imglib2.RandomAccessibleInterval<R> img,
T type,
net.imglib2.converter.Converter<R,T> converter) |
IntegralImg(net.imglib2.RandomAccessibleInterval<R> img,
T type,
net.imglib2.converter.Converter<R,T> converter,
int order) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkInput() |
String |
getErrorMessage() |
net.imglib2.img.Img<T> |
getResult() |
protected void |
integrateLine(int d,
net.imglib2.RandomAccess<T> cursor,
T sum,
long size) |
protected void |
integrateLineDim0(net.imglib2.converter.Converter<R,T> converter,
net.imglib2.RandomAccess<R> cursorIn,
net.imglib2.RandomAccess<T> cursorOut,
T sum,
T tmpVar,
long size) |
boolean |
process() |
protected final net.imglib2.RandomAccessibleInterval<R extends net.imglib2.type.numeric.NumericType<R>> img
protected final T extends net.imglib2.type.numeric.NumericType<T> & net.imglib2.type.NativeType<T> type
protected net.imglib2.img.Img<T extends net.imglib2.type.numeric.NumericType<T> & net.imglib2.type.NativeType<T>> integral
protected final net.imglib2.converter.Converter<R extends net.imglib2.type.numeric.NumericType<R>,T extends net.imglib2.type.numeric.NumericType<T> & net.imglib2.type.NativeType<T>> converter
protected final int order
public IntegralImg(net.imglib2.RandomAccessibleInterval<R> img, T type, net.imglib2.converter.Converter<R,T> converter)
public IntegralImg(net.imglib2.RandomAccessibleInterval<R> img, T type, net.imglib2.converter.Converter<R,T> converter, int order)
protected void integrateLineDim0(net.imglib2.converter.Converter<R,T> converter, net.imglib2.RandomAccess<R> cursorIn, net.imglib2.RandomAccess<T> cursorOut, T sum, T tmpVar, long size)
protected void integrateLine(int d,
net.imglib2.RandomAccess<T> cursor,
T sum,
long size)
public boolean checkInput()
checkInput in interface Algorithmpublic String getErrorMessage()
getErrorMessage in interface Algorithmpublic net.imglib2.img.Img<T> getResult()
getResult in interface OutputAlgorithm<net.imglib2.img.Img<T extends net.imglib2.type.numeric.NumericType<T> & net.imglib2.type.NativeType<T>>>Copyright © 2009–2026 ImgLib2. All rights reserved.