|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFacemorph.GaborPyramid
public class GaborPyramid
| Field Summary | |
|---|---|
FloatImage[] |
imaginary_x
imaginary x direction filtered images |
FloatImage[] |
imaginary_xy
imaginary xy direction filtered images |
FloatImage[] |
imaginary_y
imaginary y direction filtered images |
FloatImage[] |
imaginary_yx
imaginary yx direction filtered images |
int |
levels
number of levels in the pyramid |
FloatImage[] |
real_x
real x direction filtered images |
FloatImage[] |
real_xy
real xy direction filtered images |
FloatImage[] |
real_y
real y direction filtered images |
FloatImage[] |
real_yx
real yx direction filtered images |
FloatImage |
smooth
low pass residual image |
| Constructor Summary | |
|---|---|
GaborPyramid()
Constructs an empty gabor Pyramid |
|
GaborPyramid(GaborPyramid rhs)
Constructs a GaborPyramid by copying the supplied |
|
GaborPyramid(int baseWidth,
int baseHeight,
int levs)
Constructs an empty Gabor pyramid of the desired size |
|
| Method Summary | |
|---|---|
void |
add(GaborPyramid gaborPyramid)
Add cell-wise two pyramids together |
void |
addToAverage(GaborPyramid pyr,
int N)
Useful method for creating the mean |
void |
addWeighted(GaborPyramid gaborPyramid,
float w)
Add cell-wise two pyramids together |
float |
averageComplexMagnitude(int lev,
int direction)
Finds the average complex magnitude in a particular subband |
float |
averageSubbandMagnitude(int lev,
int direction,
boolean real)
Calculates the average magnitude in the specified subband |
void |
build_pyramid(FloatImage img,
int levs)
Build a Pyramid |
void |
buildPyramidSteerable(FloatImage img,
int levs)
Build a Pyramid using steerable filters |
void |
collapse_pyramid()
Collapse the Pyramid, the low-pass residual (smooth) holds the result |
void |
complexMagnitude()
In place conversion to a magnitude pyramid (imaginary part set to zero) |
void |
convolve(float[] filter,
int m,
int scale)
|
GaborPyramid |
copy()
Creates a copy of this and returns it |
double |
dotProduct(GaborPyramid pyr)
Calculates a weighted dot product Weights are 1/number of pixels in each subband |
double |
dotProduct(GaborPyramid pyr,
FloatImage[] masks)
Calculates a weighted dot product Weights are 1/number of pixels in each subband |
boolean |
getReal()
|
static void |
main(java.lang.String[] args)
|
void |
mask(FloatImage[] masks)
Apply a mask to the images |
void |
read(java.lang.String fname)
|
void |
scale(float f)
Multiplies each value in each pyramid by the supplied value |
void |
setReal(boolean real)
|
void |
square()
Square each component |
void |
subtract(GaborPyramid gaborPyramid)
Subtract subband-wise two pyramids |
void |
write(java.lang.String fname)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public FloatImage[] real_x
public FloatImage[] real_y
public FloatImage[] real_xy
public FloatImage[] real_yx
public FloatImage[] imaginary_x
public FloatImage[] imaginary_y
public FloatImage[] imaginary_xy
public FloatImage[] imaginary_yx
public FloatImage smooth
public int levels
| Constructor Detail |
|---|
public GaborPyramid()
public GaborPyramid(int baseWidth,
int baseHeight,
int levs)
baseWidth - the width of the highest res levelsbaseHeight - the height of the highest res levelslevs - the number of levelspublic GaborPyramid(GaborPyramid rhs)
rhs - the GaborPyramid to copy into this| Method Detail |
|---|
public GaborPyramid copy()
public void build_pyramid(FloatImage img,
int levs)
img - the image to construct the pyramid onlevs - the number of levels to buildpublic void collapse_pyramid()
public void buildPyramidSteerable(FloatImage img,
int levs)
img - the image to construct the pyramid onlevs - the number of levels to build
public float averageComplexMagnitude(int lev,
int direction)
lev - the leveldirection - the subband
public void convolve(float[] filter,
int m,
int scale)
public void complexMagnitude()
public void setReal(boolean real)
public boolean getReal()
public void addToAverage(GaborPyramid pyr,
int N)
pyr - The pyramid to add to this averageN - the number in the sequence being addedpublic double dotProduct(GaborPyramid pyr)
pyr - the pyramid to dot product with
public double dotProduct(GaborPyramid pyr,
FloatImage[] masks)
pyr - the pyramid to dot product withmasks - masks, one for each level of the pyramid
public void mask(FloatImage[] masks)
masks - masks, one for each level of the pyramid
public float averageSubbandMagnitude(int lev,
int direction,
boolean real)
lev - the leveldirection - the direction 0 (x), 1 (y), 2 (xy) or 3 (yx)real - if true use the real components , else the imaginary
public void add(GaborPyramid gaborPyramid)
gaborPyramid - public void subtract(GaborPyramid gaborPyramid)
gaborPyramid -
public void addWeighted(GaborPyramid gaborPyramid,
float w)
gaborPyramid -
public void write(java.lang.String fname)
throws java.io.IOException
java.io.IOException
public void read(java.lang.String fname)
throws java.io.IOException
java.io.IOExceptionpublic void square()
public void scale(float f)
f - the amount to scale the coefficients by
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||