|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.multifilter.FourierDecompose
public class FourierDecompose
Decompose an image using Fourier based filtering with a filter bank
Constructor Summary | |
---|---|
FourierDecompose(int w,
int h,
int l,
double scaleFactor)
Constructor builds filters of size wxh |
Method Summary | |
---|---|
java.util.ArrayList<Complex[]> |
analyse(Complex[] data)
Analyse the image as a Complex array and return the result as a set of Complex responses |
java.util.ArrayList<FloatImage> |
analyse(FloatImage fimg)
Analyse an image using the filter bank |
java.util.ArrayList<FloatImage> |
analyseExhaustive(FloatImage fimg)
Exhaustive search for best filter components Adds components until sum squared errors is > 30000 or 1000 iterations exceeded |
void |
imposeSymmetry(Complex[] response)
Impose conjugate symmetry on the complex response |
static void |
main(java.lang.String[] args)
Main method used for testing |
Complex[] |
reconstruct(java.util.ArrayList<Complex[]> responses)
Reconstruct in the Fourier domain |
FloatImage |
reconstruct(java.util.ArrayList<FloatImage> responses)
Reconstruct fom a set of FloatImage responses |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FourierDecompose(int w, int h, int l, double scaleFactor)
w
- widthh
- heightl
- levelsscaleFactor
- the scale change between pyramid levelsMethod Detail |
---|
public java.util.ArrayList<FloatImage> analyse(FloatImage fimg)
fimg
- the image to analyse
public java.util.ArrayList<Complex[]> analyse(Complex[] data)
data
- the image (Fourier domain)
public void imposeSymmetry(Complex[] response)
response
- public FloatImage reconstruct(java.util.ArrayList<FloatImage> responses)
responses
- the response to rebuild the image from
public Complex[] reconstruct(java.util.ArrayList<Complex[]> responses)
responses
- the FFT responses
public java.util.ArrayList<FloatImage> analyseExhaustive(FloatImage fimg)
fimg
- the image to analyse
public static void main(java.lang.String[] args) throws java.io.IOException
args
- args[0] = name of file
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |