Modifying impixelinfo to display 3d coordinates
Ältere Kommentare anzeigen
I want to display real world image coordinates (imrealinfo function)when user move the mouse over the image.
I have to get the image pixel coordinates with impixelinfoval Then I know the real world coordinate of the left top position of the image (origin in image space) also the pixel width
My code is
X3d = realcor(1,1) + realcor(3,1)* X;
Y3d = realcor(2,1) + realcor(4,1)* Y;
Z3d = Zdata(X3d, Y3d);
% realcor contain real world coordinates of left top corner of the image, pixel width
% Zdata contain Z details
X, Y are the output of impixelinfoval function.
so my new function should get the output of impixelinfoval and then compute the 3d coordinates and when user move the mouse imrealinfo command should show the 3d real coordinates of that point.
Any suggestion please
1 Kommentar
bes
am 19 Jul. 2012
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 19 Jul. 2012
0 Stimmen
Perhaps you could do this with datacursormode . It allows custom callbacks for information display.
1 Kommentar
bes
am 19 Jul. 2012
Kategorien
Mehr zu Build Interactive Tools 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!