mpicbg.ij.integral
Class LongIntegralImage

java.lang.Object
  extended by mpicbg.ij.integral.LongIntegralImage
All Implemented Interfaces:
IntegralImage

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 >231 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.

Author:
Stephan Saalfeld

Field Summary
protected  long[] sum
           
 
Constructor Summary
LongIntegralImage(ImageProcessor ip)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sum

protected final long[] sum
Constructor Detail

LongIntegralImage

public LongIntegralImage(ImageProcessor ip)
Method Detail

getWidth

public final int getWidth()
Specified by:
getWidth in interface IntegralImage

getHeight

public final int getHeight()
Specified by:
getHeight in interface IntegralImage

getLongSum

public final long getLongSum(int x,
                             int y)

getLongSum

public final long getLongSum(int xMin,
                             int yMin,
                             int xMax,
                             int yMax)

getSum

public final int getSum(int xMin,
                        int yMin,
                        int xMax,
                        int yMax)
Specified by:
getSum in interface IntegralImage

getScaledSum

public final int getScaledSum(int xMin,
                              int yMin,
                              int xMax,
                              int yMax,
                              float scale)
Specified by:
getScaledSum in interface IntegralImage


Copyright © 2007-2016 Fiji. All Rights Reserved.