public final class LongIntegralImage extends Object implements IntegralImage
Summed area table using 64bit signed integer precision. This table can
be used safely for 16bit unsigned integer precision images with a maximal
size of >2<sup>31</sup> px
which is ImageJ's size limit due to
usage of a single basic type array for pixel storage. For the squares of
16bit unsigned integer precision images, the size limit is two pixels less
(231-2 px) which should not impose a practical limitation.
These limits are calculated for the extreme case that all pixels have the
maximum possible value.
Boolean or byte integer precision images and their squares are safe.
Modifier and Type | Field and Description |
---|---|
protected long[] |
sum |
Constructor and Description |
---|
LongIntegralImage(ij.process.ImageProcessor ip) |
Modifier and Type | Method and Description |
---|---|
int |
getHeight() |
long |
getLongSum(int x,
int y) |
long |
getLongSum(int xMin,
int yMin,
int xMax,
int yMax) |
int |
getScaledSum(int xMin,
int yMin,
int xMax,
int yMax,
float scale) |
int |
getSum(int xMin,
int yMin,
int xMax,
int yMax) |
int |
getWidth() |
public final int getWidth()
getWidth
in interface IntegralImage
public final int getHeight()
getHeight
in interface IntegralImage
public final long getLongSum(int x, int y)
public final long getLongSum(int xMin, int yMin, int xMax, int yMax)
public final int getSum(int xMin, int yMin, int xMax, int yMax)
getSum
in interface IntegralImage
public final int getScaledSum(int xMin, int yMin, int xMax, int yMax, float scale)
getScaledSum
in interface IntegralImage
Copyright © 2015–2021 Fiji. All rights reserved.