|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Facemorph.mdl.TemplatePatchMDL
public class TemplatePatchMDL
Template patch groupwise alignment (experimental)
Constructor Summary | |
---|---|
TemplatePatchMDL(java.util.ArrayList<java.awt.image.BufferedImage> images,
Template template,
int patchsize,
int windowSize)
TemplatePatchMDL constructor |
Method Summary | |
---|---|
TemplatePatchMDL |
getLowRes()
Get a low res approximation to the problem |
java.awt.geom.Point2D.Float |
getPointUpdate(java.awt.geom.Point2D.Float sPt,
java.awt.geom.Point2D.Float tPt,
FloatImage source,
FloatImage target,
int patchSize,
int windowSize)
Search for the best match for a specific point |
java.util.ArrayList<Template> |
getTemplates()
Get the template array |
static void |
main(java.lang.String[] args)
Main method is used for testing |
void |
optimise(int minwidth)
Perform the optimisation (alignment) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplatePatchMDL(java.util.ArrayList<java.awt.image.BufferedImage> images, Template template, int patchsize, int windowSize)
images
- the images to aligntemplate
- the example template aligned to the first imagepatchsize
- the patch size to usewindowSize
- the window size to useMethod Detail |
---|
public TemplatePatchMDL getLowRes()
public java.util.ArrayList<Template> getTemplates()
public void optimise(int minwidth)
minwidth
- the minimum width for the multiscale recursionpublic java.awt.geom.Point2D.Float getPointUpdate(java.awt.geom.Point2D.Float sPt, java.awt.geom.Point2D.Float tPt, FloatImage source, FloatImage target, int patchSize, int windowSize)
sPt
- current location in source imagetPt
- current location in target imagesource
- source imagetarget
- target imagepatchSize
- the patch sizewindowSize
- the window size
public static void main(java.lang.String[] args) throws java.io.FileNotFoundException
args
- args[0] = the image-template list file, args[1] = the template to use
java.io.FileNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |