menpo / menpo

A statistical modelling toolkit, providing all the tools required to build, fit, visualize, and test deformable models.
http://www.menpo.org
BSD 3-Clause "New" or "Revised" License
325 stars 85 forks source link

Fitting a shape instead of landmarks #796

Open bvandepoel opened 7 years ago

bvandepoel commented 7 years ago

I would like to fit to a specific shape in an image, let's say something similar to an elliptical shape with some variation. Right now I've annotated some images by placing some landmark points along this shape, and the point distribution model will model the variation in the location of these points. Then I train an AAM on these labeled landmarks. But in reality I don't really care about the exact location of specific points, just the shape that they define. It seems like I now have unnecessary variation coming from different sets of landmarks that define the same shape, but with the landmarks at a bit different locations on the shape.

Is there something in Menpo that I should be using instead, or would this still be a good approach and I just need to be very careful with labeling the landmarks on my shape consistently?

patricksnape commented 7 years ago

Is it literally an ellipse? Does the ellipse have a parametric form?

bvandepoel commented 7 years ago

No that was a bad example I guess. It's a non-parametric shape (the shape of a bone actually)