- Save the image to a lossless image file (like e.g. png).
- use system(sprintf('mspaint "%s"',path_and_file))
- use a msgbox or any uiwait to wait for your manual edit
- apply the edit in mspaint and hit save
- continue code execution, load temp image file back from disk so it is a uint8 again
Help using Microsoft Paint with Matlab code
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alon Spinner
am 16 Aug. 2018
Kommentiert: Alon Spinner
am 17 Aug. 2018
Hi,
I need to have a few hundred photos manually inspected and edited. Certain things need to be blacken out, while others marked in various ways.
I would like to write a script/GUI that will allow me to do the following:
1) Open mspaint
2) load image (uint8 matrix) currently saved in workspace into open window
3) when done editing, close mspaint and save new image into workspace (as uint8 matrix)
to implement this, I wish to know:
- How to load an image from workspace into an open mspaint session.
- How to save an image from a mspaint session to workspace as uint8 matrix.
- How to close mspaint - openning is with "system('mspaint')"
Help would be much appriciated.
Thanks, Alon
0 Kommentare
Akzeptierte Antwort
Rik
am 16 Aug. 2018
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Display Image 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!