Main Content

impixelinfoval

Pixel Information tool without text label

Description

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. Seeimpixelinfofor more details about using the Pixel Information tool.

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

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