Delphi Image Utilities and Active Appearance Models
Pascal
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Test
AAMAppearanceBuilder.pas
AAMConst.pas
AAMLinearWarp.pas
AAMMatrixExt.pas
AAMModel.pas
AAMModelBuilder.pas
AAMPyramidModel.pas
AAMPyramidModelBuilder.pas
AAMShapeBuilder.pas
AAMTPSWarp.pas
AAMVisuals.pas
AAMWarp.pas
BaseAAMModel.pas
CombinedPCA.pas
DelaunyMapping.pas
DelaunyTriangulation.pas
ImageFilter.pas
ImageMatrixConv.pas
ImageResize.pas
LICENSE.txt
LinearTriangulationTransformation.pas
MatrixImageLists.pas
Procrustes.pas
PtsDefinitions.pas
Registration.pas
RigidTransformation.pas
ShapePCA.pas
TexturePCA.pas
ThinPlateSplines.pas
Triangulation.pas
mrImgUtils.dpk
readme.txt

readme.txt

This project extends the mrmath library with a few common image processing techniques:

    rgb to matrix conversion and vice versa
    Procrustes analysis
    Delauny triangulation
    Image warping based on a triangulation
    Image warping based on thin plate splines
    An Active Appearance Models framework including an annotation application and a model builder application 

As a precondition for that project you also need to checkout http://code.google.com/p/mrmath/ and put it to the projects search path! 

This project heavily depends on the functionality provided in
the mrmath library. You can download the libarary from

http://www.mrsoft.org/

or if you like a convenient svn download then check out
https://github.com/mikerabat/mrmath

You can add the matrix library to your projects search path for easy 
integration.

##############################################################

Active Appearance Models here are based on the work of Cootes et al
"Active Appearance Models" 
https://www.cs.cmu.edu/~efros/courses/LBMV07/Papers/cootes-eccv-98.pdf

Some hints on using the AAMBuilder project:

* You can annotate images with the annotator tool. Note that it is required to
  always annotate the images in the same order and always use the same number of points!
* To build an Active Appearance Module one needs a directory having 
  a set of images with a corresponding points file (same name as the image
  but with a different extension). The points files may be created by using 
  the AAMAnnotation tool. 
* The predefined values for building an AAM are quite ok - note that the 
  model size (aka the models maximum internal image size) has quite some inpact on
  the performance.
* You can choose between two different image warping techniques: Linear where the
  image is splitted into triangles and these are warped to a different coordinate system or
  Thin Plate Splines where the warping is defined by a global spline.
* The library supports a pyramid approach going from the lowest to the highest resolution.
* You can load previously created models.
* To test the model goto the "Test Model Fitting" tab and load an image. Click on the 
  image somewhere this initializes the fitting algorithm aka the image is placed at the clicked point and
  the models tries to fit the underlying image. Examine the result on the right image (the fitting 
  can take quite some time according to the size of the loaded image, the number of iterations needed and
  the warping used).