|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.mdl.multiScaleEdgeMDLFile
public class multiScaleEdgeMDLFile
Multiscale edge minimum description length
Constructor Summary | |
---|---|
multiScaleEdgeMDLFile(java.util.ArrayList<java.lang.String> imageFiles)
Align a set of images |
|
multiScaleEdgeMDLFile(java.util.ArrayList<java.lang.String> imageFiles,
PsychoMorphForm psycho,
java.lang.String baseDir)
Align a set of images |
|
multiScaleEdgeMDLFile(java.util.ArrayList<java.lang.String> imageFiles,
PsychoMorphForm psycho,
java.lang.String baseDir,
int minwidth,
int maxIts)
Align a set of images |
Method Summary | |
---|---|
static void |
createTemplates(Template tem,
java.lang.String baseDir,
java.util.ArrayList<java.lang.String> outNames)
Warps the given templates into a set of templates and writes the results to disk |
static void |
createTemplates(Template tem,
java.lang.String baseDir,
java.util.ArrayList<java.lang.String> imageNames,
java.util.ArrayList<java.lang.String> outNames)
Warps the given templates into a set of templates and writes the results to disk |
java.util.ArrayList<Template> |
getTemplates(Template tem)
Warp the given template using the current warping functions |
MultiscaleWarp |
invertWarp(MultiscaleWarp w)
Invert a warp |
static void |
main(java.lang.String[] args)
Main method used for testing |
void |
optimiseFixed()
Optimisation with the average fixed throughout each iteration (i.e. |
void |
optimiseFixedReverse()
Optimisation with the average fixed throughout each iteration (i.e. |
void |
optimiseFixedReverse(int i)
Optimisation with the average fixed throughout each iteration (i.e. |
java.awt.image.BufferedImage |
readImage(java.lang.String name)
Read an image from file |
static MultiscaleWarp |
readWarp(java.lang.String name)
Read a warp from file |
void |
run()
|
static void |
writeWarp(MultiscaleWarp lw,
java.lang.String name)
Write a warp to file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public multiScaleEdgeMDLFile(java.util.ArrayList<java.lang.String> imageFiles) throws java.io.IOException
imageFiles
- the image file names to align
java.io.IOException
public multiScaleEdgeMDLFile(java.util.ArrayList<java.lang.String> imageFiles, PsychoMorphForm psycho, java.lang.String baseDir) throws java.io.IOException
imageFiles
- the set of image file names to usepsycho
- the psychomorph form (or can be null)baseDir
- the base directory for reading and writing data
java.io.IOException
public multiScaleEdgeMDLFile(java.util.ArrayList<java.lang.String> imageFiles, PsychoMorphForm psycho, java.lang.String baseDir, int minwidth, int maxIts) throws java.io.IOException
imageFiles
- the set of image file names to usepsycho
- the psychomorph form (or can be null)baseDir
- the base directory for reading and writing dataminwidth
- the minimum widthmaxIts
- the maximum iterations
java.io.IOException
Method Detail |
---|
public static void writeWarp(MultiscaleWarp lw, java.lang.String name) throws java.io.FileNotFoundException, java.io.IOException
lw
- the warp to writename
- the file name to write to
java.io.FileNotFoundException
java.io.IOException
public static MultiscaleWarp readWarp(java.lang.String name) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
name
- the warp to reaad
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public java.awt.image.BufferedImage readImage(java.lang.String name) throws java.io.IOException
name
- the name of the image to read
java.io.IOException
public void optimiseFixed() throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void optimiseFixedReverse() throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void optimiseFixedReverse(int i) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
i
- the maximum multiscale levels to go to
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public MultiscaleWarp invertWarp(MultiscaleWarp w)
w
- the warp to invert
public java.util.ArrayList<Template> getTemplates(Template tem) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
tem
- the Template delineating the mean
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public static void createTemplates(Template tem, java.lang.String baseDir, java.util.ArrayList<java.lang.String> outNames) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
tem
- The basic Template delineating the meanbaseDir
- the directory to write tooutNames
- the list of file names to write
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public static void createTemplates(Template tem, java.lang.String baseDir, java.util.ArrayList<java.lang.String> imageNames, java.util.ArrayList<java.lang.String> outNames) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
tem
- The basic Template delineating the meanbaseDir
- the directory to write toimageNames
- the names of the images to readoutNames
- the list of file names to write
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public static void main(java.lang.String[] args) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
args
- the program args
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |