Display Pixel Values in Image - Alternative to `showPixelValues()`
4 次查看(过去 30 天)
显示 更早的评论
Hello,
What I need is to be able to display it on an Axes Object on my own.
Namely something like:
hFigure = figure();
hAxes = axes();
DisplayImagePixelsValues(hAxes, mInputImage);
% Now set the properties of the axis.
Are there any alternatives to `showPixelValues()`? Something with more user control.
Thank You.
---
Update
According to answers it seems I wasn't clear.
I don't want to show data of a current axis or something.
I want a function which the input is a matrix (Small one) and the output is a regular axis object with result of an image with text of the pixels values.
From there I'd like to be able to customize this axes to my wishes.
0 个评论
回答(3 个)
Image Analyst
2017-9-3
How about impixelinfo()?
3 个评论
Image Analyst
2017-9-3
If not, then you'll just have to use text() to put up text labels over the image pixels.
Walter Roberson
2017-9-3
The existing File Exchange contribution you linked to, does an imshow() without any parent, so it will display inside the current axes.
However, I discovered recently that if you imshow() and the current axes is at the default position, that imshow sets up conditions so that the axes will typically be deleted on the next graphics operation. You can avoid that by setting a non-default Position for the axes.
In any case you can easily edit the File Exchange Contribution to add a 'Parent' property to the imshow() calls and other calls.
9 个评论
Walter Roberson
2017-9-6
What HTML code? The routine you linked to does not create HTML. Which routine are you looking at that produces HTML?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!