|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsurf.My_Integral_Image
public class My_Integral_Image
A standard implementation of the Integral_Image interface. Creates the integral image representation of supplied input image. Calculates pixel sums over upright rectangular areas.
Constructor Summary | |
---|---|
My_Integral_Image(processing.core.PImage img,
processing.core.PApplet parent)
Constructor of My_Integral_Image. |
Method Summary | |
---|---|
float |
getIntegralSquare(int xA,
int yA,
int xD,
int yD)
The method needs only A and D, i.e. the upper left and bottom right vertex coordinates. |
float |
getIntegralValue(int x,
int y)
Given the coordinates of a point of the image, returns its integral value, ie the intensity of the rectangle whose vertices are the origin and (x, y). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public My_Integral_Image(processing.core.PImage img, processing.core.PApplet parent)
Method Detail |
---|
public float getIntegralValue(int x, int y)
Integral_Image
getIntegralValue
in interface Integral_Image
x
- x-coordinatey
- y-coordinate
public float getIntegralSquare(int xA, int yA, int xD, int yD)
Integral_Image
getIntegralSquare
in interface Integral_Image
xA
- x-coordinate of vertex A.yA
- y-coordinate of vertex A.xD
- x-coordinate of vertex D.yD
- y-coordinate of vertex D.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |