Pixel Information tool without text label
Use theimpixelinfoval
函数来创建一个像素formation tool without thePixel info:text label. The Pixel Information tool displays information about the pixel in an image that the pointer is positioned over. If the figure contains multiple images, the tool displays pixel information for all the images. The information displayed depends on the image type. Seeimpixelinfo
for more details about using the Pixel Information tool.
Add a Pixel Information tool to a figure, excluding the text label. Note how you can change the style and size of the font used to display the value in the tool using standard graphics object properties.
ankle = dicomread('CT-MONO2-16-ankle.dcm'); h = imshow(ankle,[]); hText = impixelinfoval(gcf,h); set(hText,'FontWeight','bold') set(hText,'FontSize',10)