JIGL
v1.6

jigl.image.utils
Class LocalDifferentialGeometry

java.lang.Object
  |
  +--jigl.image.utils.LocalDifferentialGeometry

class LocalDifferentialGeometry
extends Object

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

avgKappaSquare

public double avgKappaSquare
The average squared Kappa value for current image.


avgAbsKappa

public double avgAbsKappa
The average absolute Kappa value for current image.


stdDevAbsKappa

public double stdDevAbsKappa
The standard deviation of Kappa value.


stdDevKappaSquare

public double stdDevKappaSquare
The standard deviation of squared Kappa value.


image

public RealGrayImage image
Original image


IxImage

public RealGrayImage IxImage
First derivative in the x direction.


IyImage

public RealGrayImage IyImage
First derivative in the y direction.


IxxImage

public RealGrayImage IxxImage
Second derivative in the x direction.


IyyImage

public RealGrayImage IyyImage
Second derivative in the y direction.


IxyImage

public RealGrayImage IxyImage
second derivative in the xy direction


GradientMagnitude

public RealGrayImage GradientMagnitude
A image stores the gradient magnitude (steep) at each pixel.


IsophoteCurvature

public RealGrayImage IsophoteCurvature
A image stores the isophote curvature at each pixel.


IsophoteCurvatureFlow

public RealGrayImage IsophoteCurvatureFlow
A image stores the isophote curvature at each pixel.


OrientationMap

public RealGrayImage OrientationMap
A image stores the gradient phase at each pixel.

Constructor Detail

LocalDifferentialGeometry

public LocalDifferentialGeometry(RealGrayImage im)
Constructs a LocalDifferentialGeometry object from a RealGrayImage.


LocalDifferentialGeometry

public LocalDifferentialGeometry()
Default constructor

Method Detail

calcIx

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


calcIy

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


calcIxx

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


calcIyy

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


calcIxy

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


calcIsophoteStore

public 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. The formula is:
         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


calcIsophote

public RealGrayImage calcIsophote(int x1,
                                  int y1,
                                  int x2,
                                  int y2)
This method caluculates the isophote curvature image in a specified area. This function is less memory floatensive than calcIsophoteStore. 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


calcIsophoteFlowStore

public RealGrayImage calcIsophoteFlowStore(int x1,
                                           int y1,
                                           int x2,
                                           int y2)
isophote flow???


calcIsophoteFlow

public RealGrayImage calcIsophoteFlow(int x1,
                                      int y1,
                                      int x2,
                                      int y2)
This method caluculates the Isophote flow of a RealGrayImage image at the specified area. This function is less memory floatensive than calcIsophoteFlowStore


calcGradientMagnitude

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


calcApproximateGradientMagnitude

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


calcOrientationMap

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


calcIsophoteCurvature

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


calcIsophoteFlow

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


setImage

public void setImage(RealGrayImage im,
                     int x1,
                     int y1,
                     int x2,
                     int y2)
Substitutes current image by another image in a specified rectangle area. 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


calcIy

public 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. The origin of *dest is (x1,y1) of image *src.


calcIx

public 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. The origin of *dest is (x1,y1) of image *src.


JIGL
v1.6

Submit a bug or feature
Revised in May 2002 by Weiming Liu