|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jigl.image.utils.LocalDifferentialGeometry
This class performs various differential geometry operations on a specified area of
an image. While DifferentialGeometry does the calculations for the
whole image.
It calculates only as needed and then stores the results into various internal images. For example, if an operation needs the first derivative calculated, then it will store the result internally for use later on.
Suports only RealGrayImage
| Field Summary | |
double |
avgAbsKappa
The average absolute Kappa value for current image. |
double |
avgKappaSquare
The average squared Kappa value for current image. |
RealGrayImage |
GradientMagnitude
A image stores the gradient magnitude (steep) at each pixel. |
RealGrayImage |
image
Original image |
RealGrayImage |
IsophoteCurvature
A image stores the isophote curvature at each pixel. |
RealGrayImage |
IsophoteCurvatureFlow
A image stores the isophote curvature at each pixel. |
RealGrayImage |
IxImage
First derivative in the x direction. |
RealGrayImage |
IxxImage
Second derivative in the x direction. |
RealGrayImage |
IxyImage
second derivative in the xy direction |
RealGrayImage |
IyImage
First derivative in the y direction. |
RealGrayImage |
IyyImage
Second derivative in the y direction. |
RealGrayImage |
OrientationMap
A image stores the gradient phase at each pixel. |
double |
stdDevAbsKappa
The standard deviation of Kappa value. |
double |
stdDevKappaSquare
The standard deviation of squared Kappa value. |
| Constructor Summary | |
LocalDifferentialGeometry()
Default constructor |
|
LocalDifferentialGeometry(RealGrayImage im)
Constructs a LocalDifferentialGeometry object from a RealGrayImage. |
|
| Method Summary | |
RealGrayImage |
calcApproximateGradientMagnitude(int x1,
int y1,
int x2,
int y2)
Calculates the approximate gradient magnitude for each pixel in a specified area and stores the result in a RealGrayImage pointer. |
RealGrayImage |
calcGradientMagnitude(int x1,
int y1,
int x2,
int y2)
Calculates the gradient magnitude for each pixel in a specified area and stores the result in a RealGrayImage pointer. |
RealGrayImage |
calcIsophote(int x1,
int y1,
int x2,
int y2)
This method caluculates the isophote curvature image in a specified area. |
void |
calcIsophoteCurvature(int x1,
int y1,
int x2,
int y2,
RealGrayImage src,
RealGrayImage dest)
Overloaded function to stores the result in a RealGrayImage object pointed by dest. |
RealGrayImage |
calcIsophoteFlow(int x1,
int y1,
int x2,
int y2)
This method caluculates the Isophote flow of a RealGrayImage image at the specified area. |
void |
calcIsophoteFlow(int x1,
int y1,
int x2,
int y2,
RealGrayImage src,
RealGrayImage dest)
Overloaded function to stores the result in a RealGrayImage object pointed by dest. |
RealGrayImage |
calcIsophoteFlowStore(int x1,
int y1,
int x2,
int y2)
isophote flow??? |
RealGrayImage |
calcIsophoteStore(int x1,
int y1,
int x2,
int y2)
Calculates the isophote curvature at each pixel in a specified area of current image and returns the result curvature image. |
RealGrayImage |
calcIx(int x1,
int y1,
int x2,
int y2)
Calculates Ix (first derivative in the x direction) of the image in a specified area. |
void |
calcIx(RealGrayImage src,
RealGrayImage dest,
int x1,
int y1,
int x2,
int y2)
Overloaded methods to calculate Ix and the result is stored in the image pointed to by dest. |
RealGrayImage |
calcIxx(int x1,
int y1,
int x2,
int y2)
Calculates Ixx (second derivative in the x direction) of the image in a specified area. |
RealGrayImage |
calcIxy(int x1,
int y1,
int x2,
int y2)
Calculates Ixy (second derivative in the xy direction) of the image in a specified area. |
RealGrayImage |
calcIy(int x1,
int y1,
int x2,
int y2)
Calculate Iy (first derivative in the y direction) of the image in a specified area. |
void |
calcIy(RealGrayImage src,
RealGrayImage dest,
int x1,
int y1,
int x2,
int y2)
Overloaded methods to calculate Ix and the result is stored in the image pointed to by dest. |
RealGrayImage |
calcIyy(int x1,
int y1,
int x2,
int y2)
Calculates Iyy (second derivative in the y direction) of the image in a specified area. |
RealGrayImage |
calcOrientationMap(int x1,
int y1,
int x2,
int y2)
Calculates the gradient phase for each pixel in a specified area and stores the result in a RealGrayImage pointer. |
void |
setImage(RealGrayImage im,
int x1,
int y1,
int x2,
int y2)
Substitutes current image by another image in a specified rectangle area. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public double avgKappaSquare
public double avgAbsKappa
public double stdDevAbsKappa
public double stdDevKappaSquare
public RealGrayImage image
public RealGrayImage IxImage
public RealGrayImage IyImage
public RealGrayImage IxxImage
public RealGrayImage IyyImage
public RealGrayImage IxyImage
public RealGrayImage GradientMagnitude
public RealGrayImage IsophoteCurvature
public RealGrayImage IsophoteCurvatureFlow
public RealGrayImage OrientationMap
| Constructor Detail |
public LocalDifferentialGeometry(RealGrayImage im)
public LocalDifferentialGeometry()
| Method Detail |
public RealGrayImage calcIx(int x1,
int y1,
int x2,
int y2)
public RealGrayImage calcIy(int x1,
int y1,
int x2,
int y2)
public RealGrayImage calcIxx(int x1,
int y1,
int x2,
int y2)
public RealGrayImage calcIyy(int x1,
int y1,
int x2,
int y2)
public RealGrayImage calcIxy(int x1,
int y1,
int x2,
int y2)
public RealGrayImage calcIsophoteStore(int x1,
int y1,
int x2,
int y2)
Isophote curvature = ((Iy*Iy*Ixx)-(2*Ix*Ixy*Iy) + (Iyy*Ix*Ix)) /
sqrt(((Ix*Ix)+(Iy*Iy)) * ((Ix*Ix) + (Iy*Iy)) * ((Ix*Ix)+(Iy*Iy)));
parameters:
x1 - the left bound of the specified area
y1 - the right bottom bound of the specified area
x2 - the right bound of the specified area
y2 - the top bound of the specified area
public RealGrayImage calcIsophote(int x1,
int y1,
int x2,
int y2)
public RealGrayImage calcIsophoteFlowStore(int x1,
int y1,
int x2,
int y2)
public RealGrayImage calcIsophoteFlow(int x1,
int y1,
int x2,
int y2)
public RealGrayImage calcGradientMagnitude(int x1,
int y1,
int x2,
int y2)
public RealGrayImage calcApproximateGradientMagnitude(int x1,
int y1,
int x2,
int y2)
public RealGrayImage calcOrientationMap(int x1,
int y1,
int x2,
int y2)
public void calcIsophoteCurvature(int x1,
int y1,
int x2,
int y2,
RealGrayImage src,
RealGrayImage dest)
dest.
public void calcIsophoteFlow(int x1,
int y1,
int x2,
int y2,
RealGrayImage src,
RealGrayImage dest)
dest.
public void setImage(RealGrayImage im,
int x1,
int y1,
int x2,
int y2)
public void calcIy(RealGrayImage src,
RealGrayImage dest,
int x1,
int y1,
int x2,
int y2)
dest. The origin of *dest is (x1,y1) of image
*src.
public void calcIx(RealGrayImage src,
RealGrayImage dest,
int x1,
int y1,
int x2,
int y2)
dest. The origin of *dest is (x1,y1) of image
*src.
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||