AddImageXYTracker.m
Syntax:
AddImageXYTracker(h)
Adds a callback to the image handle h so that when the image is clicked, the plot title displays the coordinates and value of the clicked pixel.
Unlike MATLAB's data cursor, the coordinates are always matrix indices.
If h is not specified, AddImageXYTracker looks for the first image it finds in the current axes.
Example:
h = imagesc(eye(5));
AddImageXYTracker(h);
% Now you can click the image to see pixel locations and values.
Zitieren als
Peter Caday (2024). AddImageXYTracker.m (https://www.mathworks.com/matlabcentral/fileexchange/46974-addimagexytracker-m), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Graphics > Formatting and Annotation > Labels and Annotations > Title >
- MATLAB > Graphics > Formatting and Annotation > Labels and Annotations > Annotations >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Image Arithmetic >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |