How can generate `.pts` file for `.jpeg` or other image format ?
Show older comments
I am using AAMs matlab toolbox, the dataset provided includes images along with `.pts` file. I want to use my own images, how can i generate `.pts` file?
2 Comments
Walter Roberson
on 21 Oct 2015
This appears to be a question about Active Appearance Models http://www.mathworks.com/matlabcentral/fileexchange/44651-active-appearance-models--aams-
pankaj Pankaj
on 21 Oct 2015
Answers (2)
Walter Roberson
on 21 Oct 2015
0 votes
8 Comments
pankaj Pankaj
on 21 Oct 2015
Edited: pankaj Pankaj
on 21 Oct 2015
Walter Roberson
on 21 Oct 2015
Why not just write such a file yourself with a tiny bit of code? fopen(), fprintf() a couple of lines, fprintf() the matrix, fprintf() the trailer, fclose()
pankaj Pankaj
on 21 Oct 2015
Guillaume
on 21 Oct 2015
I would suspect that most people here have never heard nor used that toolbox. The only way we could answer your question would then be to read its documentation or its code to understand what a pts file and how to generate it.
This reading of the documentation, you can and should do yourself.
Failing that, your best chance is to contact the author.
Walter Roberson
on 21 Oct 2015
According to the source code:
- (only) the first .png file in the directory will be read, unless you change "gg" to another value
- (only) the first .pts file in the directory will be read, unless you change "gg" to another value
- the information in the .pts file is used to calculate the face size (but I did not look to see what is done with the face size)
- otherwise the information in the .pts file is used as the "ground truth" to compare the effectiveness of the fitting, right at the end (and has no impact on the fitting.)
It would take more effort than I am willing to put in to figure out the order the points are to use.
- The author's contact information is there and the author invites feedback, so you could ask the author.
pankaj Pankaj
on 22 Oct 2015
Walter Roberson
on 22 Oct 2015
My hands hurt too much (too much clicking and typing), so I am not going to investigate this further myself.
pankaj Pankaj
on 22 Oct 2015
Fadi Alsuhimat
on 23 Dec 2018
0 votes
Are you find the answer for your question?
Categories
Find more on Computer Vision Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!