Main Content


Pixel Information tool without text label


Use the impixelinfoval function to create a Pixel Information tool without the Pixel 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. See impixelinfo for more details about using the Pixel Information tool.

Pixel Information tool in the bottom left corner of the figure window, displaying the (x, y) coordinates and the value of the pixel under the pointer.


hTool = impixelinfoval(hParent,hImage) creates a Pixel Information tool in hParent that provides information about the pixels in image hImage.


collapse all

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);

Input Arguments

collapse all

Parent of the Pixel Information tool, specified as a Figure or Panel object.

Images, specified as an Image object or an array of Image objects.

Output Arguments

collapse all

Pixel Information tool, returned as a Panel object.

Version History

Introduced before R2006a