how to save the pixel location in files
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
how to save the pixel location in files my aim is to ground truth thousands of images with the pixel location (position) just Y coordinate , so after reading the image and getting the pixel info (impixelregion) I want to save the position that I click on in a file with the same name as the image name I know that I can save this position by right click and copy it in a file but this is really time consuming with lots of images
thanks
0 Kommentare
Antworten (1)
Image Analyst
am 12 Apr. 2013
Use save() to save in a proprietary binary MATLAB format file. Or you can use fprintf() to save them to a text file.
2 Kommentare
Image Analyst
am 12 Apr. 2013
[x y] = ginput(1); % (x,y) is (column, row), not (row, column)
Siehe auch
Kategorien
Mehr zu Import, Export, and Conversion finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!