How can generate `.pts` file for `.jpeg` or other image format ?
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 21 Okt. 2015
This appears to be a question about Active Appearance Models http://www.mathworks.com/matlabcentral/fileexchange/44651-active-appearance-models--aams-
pankaj Pankaj
am 21 Okt. 2015
Antworten (2)
Walter Roberson
am 21 Okt. 2015
0 Stimmen
8 Kommentare
pankaj Pankaj
am 21 Okt. 2015
Bearbeitet: pankaj Pankaj
am 21 Okt. 2015
Walter Roberson
am 21 Okt. 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
am 21 Okt. 2015
Guillaume
am 21 Okt. 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
am 21 Okt. 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
am 22 Okt. 2015
Walter Roberson
am 22 Okt. 2015
My hands hurt too much (too much clicking and typing), so I am not going to investigate this further myself.
pankaj Pankaj
am 22 Okt. 2015
Fadi Alsuhimat
am 23 Dez. 2018
0 Stimmen
Are you find the answer for your question?
Kategorien
Mehr zu Computer Vision Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!