This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

impixelinfoval

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.

Syntax

htool = impixelinfoval(hparent,himage)

Description

htool = impixelinfoval(hparent,himage) creates a Pixel Information tool in hparent that provides information about the pixels in himage.

Examples

Add Pixel Information Tool Without Text Label

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)

Input Arguments

collapse all

Handle to a figure or uipanel object that contains the Pixel Information tool, specified as a handle.

Handle to one or more images, specified as a handle or an array of image handles.

Output Arguments

collapse all

Handle to Pixel Information tool uipanel, returned as a handle.

See Also

Introduced before R2006a