impixelinfo how to get position of a selected point and the intensity in a variable
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Patrick Brown
am 12 Feb. 2017
Beantwortet: Image Analyst
am 12 Feb. 2017
Hi, with impixelinfo you can see the values of intensity of different points in an image Pixel Info (X,Y): Intensity but how can you select a pixel from one image and get this info in the workspace?? (the position of the pixel and the intensity)
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 12 Feb. 2017
You'd have to call ginput() to get the value since impixelinfo() is not meant to operate in that way since it gives a "live" readout of wherever the user is.
[x, y] = ginput(1);
grayLevel = grayImage(y, x); % Note x and y are switched since y = row.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!