mpicbg.ij.integral
Class LongRGBIntegralImage

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

public final class LongRGBIntegralImage
extends Object
implements IntegralImage

Author:
Stephan Saalfeld

Field Summary
protected  int height
           
protected  long[] sumB
           
protected  long[] sumG
           
protected  long[] sumR
           
protected  int w
           
protected  int w1
           
protected  int width
           
 
Constructor Summary
LongRGBIntegralImage(ColorProcessor ip)
           
 
Method Summary
 int getHeight()
           
 int getScaledSum(int xMin, int yMin, int xMax, int yMax, float scale)
           
 int getSum(int xMin, int yMin, int xMax, int yMax)
           
 int getWidth()
           
 void longSums(long[] sums, int x, int y)
          Write the r,g,b sums at a specified x,y location into a passed array with ≥3 fields.
 void longSums(long[] sums, int xMin, int yMin, int xMax, int yMax)
          Write the r,g,b sums in a specified rectangle into a passed array with ≥3 fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

protected final int width

height

protected final int height

w

protected final int w

w1

protected final int w1

sumR

protected final long[] sumR

sumG

protected final long[] sumG

sumB

protected final long[] sumB
Constructor Detail

LongRGBIntegralImage

public LongRGBIntegralImage(ColorProcessor 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

longSums

public final void longSums(long[] sums,
                           int x,
                           int y)
Write the r,g,b sums at a specified x,y location into a passed array with ≥3 fields.

Parameters:
x -
y -
sums -

longSums

public final void longSums(long[] sums,
                           int xMin,
                           int yMin,
                           int xMax,
                           int yMax)
Write the r,g,b sums in a specified rectangle into a passed array with ≥3 fields.

Parameters:
xMin -
yMin -
xMax -
yMax -
sums -

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.