JIGL
v1.6

jigl.image.utils
Class DifferentialGeometry

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

public class DifferentialGeometry
extends Object

This class performs various differential geometry operations on an 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.


Field Summary
private  RealGrayImage GradientMagnitude
          A image stores the gradient magnitude (steep) at each pixel.
protected  RealGrayImage image
          Original image
private  RealGrayImage IsophoteCurvature
          A image stores the curvature at each pixel.
private  RealGrayImage IsophoteCurvatureFlow
          A image stores the isophote curvature at each pixel.
private  RealGrayImage IxImage
          First derivative in the x direction.
private  RealGrayImage IxxImage
          Second derivative in the x direction.
private  RealGrayImage IxyImage
          second derivative in the xy direction
private  RealGrayImage IyImage
          First derivative in the y direction.
private  RealGrayImage IyyImage
          Second derivative in the y direction.
private  RealGrayImage OrientationMap
          A image stores the gradient phase at each pixel.
 
Constructor Summary
DifferentialGeometry(RealGrayImage grimage)
          This constructor takes a RealGrayImage and stores a shallow copy (If you change the image that is passed it will change the stored image)
 
Method Summary
(package private)  RealGrayImage ApproximateGradientMagnitude()
          An approximate way to calculate the magnitude part of gradient.
 RealGrayImage calcIsophoteFlowOnce()
          This method caluculates the Isophote of a RealGrayImage.
 RealGrayImage calcIsophoteFlowStore()
          Calculate isophote flow of current image.
 RealGrayImage calcIsophoteOnce()
          This method caluculates the Isophote of a RealGrayImage.
 RealGrayImage calcIsophoteStore()
          This function calculates the Isophote of a RealGrayImage.
 RealGrayImage calcIx()
          Calculates Ix (first derivative in the x direction) of the image.
 RealGrayImage calcIxx()
          Calculate Ixx (second derivative in the x direction) of the image.
 RealGrayImage calcIxy()
          Calculate Ixy (second derivative in the xy direction) of the image.
 RealGrayImage calcIy()
          Calculate Iy (first derivative in the y direction) of the image.
 RealGrayImage calcIyy()
          Calculate Iyy (second derivative in the y direction) of the image.
 RealGrayImage getIx()
          Returns Ix (first derivative in the x direction) of the image.
 RealGrayImage getIxx()
          Returns Ixx (second derivative in the x direction) of the image.
 RealGrayImage getIxy()
          Returns Ixy (second derivative in the xy direction) of the image.
 RealGrayImage getIy()
          Returns Iy (first derivative in the y direction) of the image.
 RealGrayImage getIyy()
          Returns Iyy (second derivative in the y direction) of the image.
(package private)  RealGrayImage GradientMagnitude()
          Calculate the magnitude part of the gradient.
(package private)  RealGrayImage OrientationMap()
          Calculate the pahse part of gradient.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

image

protected RealGrayImage image
Original image


IxImage

private RealGrayImage IxImage
First derivative in the x direction.


IyImage

private RealGrayImage IyImage
First derivative in the y direction.


IxxImage

private RealGrayImage IxxImage
Second derivative in the x direction.


IyyImage

private RealGrayImage IyyImage
Second derivative in the y direction.


IxyImage

private RealGrayImage IxyImage
second derivative in the xy direction


GradientMagnitude

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


IsophoteCurvature

private RealGrayImage IsophoteCurvature
A image stores the curvature at each pixel.


IsophoteCurvatureFlow

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


OrientationMap

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

Constructor Detail

DifferentialGeometry

public DifferentialGeometry(RealGrayImage grimage)
This constructor takes a RealGrayImage and stores a shallow copy (If you change the image that is passed it will change the stored image)

Method Detail

getIx

public RealGrayImage getIx()
Returns Ix (first derivative in the x direction) of the image. If it has not been previously calculated this function will return null.


getIy

public RealGrayImage getIy()
Returns Iy (first derivative in the y direction) of the image. If it has not been previously calculated this function will return null.


getIxx

public RealGrayImage getIxx()
Returns Ixx (second derivative in the x direction) of the image. If it has not been previously calculated this function will return null.


getIyy

public RealGrayImage getIyy()
Returns Iyy (second derivative in the y direction) of the image. If it has not been previously calculated this function will return null.


getIxy

public RealGrayImage getIxy()
Returns Ixy (second derivative in the xy direction) of the image. If it has not been previously calculated this function will return null.


calcIx

public RealGrayImage calcIx()
                     throws ImageNotSupportedException
Calculates Ix (first derivative in the x direction) of the image. Stores a copy of returned image which can be accessed through getIx()

ImageNotSupportedException

calcIy

public RealGrayImage calcIy()
                     throws ImageNotSupportedException
Calculate Iy (first derivative in the y direction) of the image. Stores a copy of returned image which can be accessed through getIy()

ImageNotSupportedException

calcIxx

public RealGrayImage calcIxx()
                      throws ImageNotSupportedException
Calculate Ixx (second derivative in the x direction) of the image. Stores a copy of returned image which can be accessed through getIxx()

ImageNotSupportedException

calcIyy

public RealGrayImage calcIyy()
                      throws ImageNotSupportedException
Calculate Iyy (second derivative in the y direction) of the image. Stores a copy of returned image which can be accessed through getIyy()

ImageNotSupportedException

calcIxy

public RealGrayImage calcIxy()
                      throws ImageNotSupportedException
Calculate Ixy (second derivative in the xy direction) of the image. Stores a copy of returned image which can be accessed through getIxy()

ImageNotSupportedException

calcIsophoteStore

public RealGrayImage calcIsophoteStore()
                                throws ImageNotSupportedException
This function calculates the Isophote of a RealGrayImage. If Ix, Iy, Ixx, Ixy, or Iyy had been previously been calculated, it will use them.

ImageNotSupportedException

calcIsophoteOnce

public RealGrayImage calcIsophoteOnce()
This method caluculates the Isophote of a RealGrayImage. This function is less memory floatensive than calcIsophoteStore


calcIsophoteFlowStore

public RealGrayImage calcIsophoteFlowStore()
                                    throws ImageNotSupportedException
Calculate isophote flow of current image.

ImageNotSupportedException

calcIsophoteFlowOnce

public RealGrayImage calcIsophoteFlowOnce()
This method caluculates the Isophote of a RealGrayImage. This function is less memory floatensive than calcIsophoteStore.


GradientMagnitude

RealGrayImage GradientMagnitude()
                          throws ImageNotSupportedException
Calculate the magnitude part of the gradient.

ImageNotSupportedException

ApproximateGradientMagnitude

RealGrayImage ApproximateGradientMagnitude()
                                     throws ImageNotSupportedException
An approximate way to calculate the magnitude part of gradient.

ImageNotSupportedException

OrientationMap

RealGrayImage OrientationMap()
                       throws ImageNotSupportedException
Calculate the pahse part of gradient.

ImageNotSupportedException

JIGL
v1.6

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