Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
pmi432 / LR07 / 2read / image processing toolbox guide.pdf
Скачиваний:
166
Добавлен:
18.03.2015
Размер:
18.08 Mб
Скачать

4 Displaying and Exploring Images

Getting Information about the Pixels in an Image

In this section...

“Determining the Value of Individual Pixels” on page 4-30 “Determining the Values of a Group of Pixels” on page 4-32 “Determining the Display Range of an Image” on page 4-35

Determining the Value of Individual Pixels

The Image Tool displays information about the location and value of individual pixels in an image in the bottom left corner of the tool. (You can also obtain this information by opening a figure with imshow and then calling impixelinfo from the command line.) The pixel value and location

information represent the pixel under the current location of the pointer. The Image Tool updates this information as you move the pointer over the image.

For example, view an image in the Image Tool.

imtool('moon.tif')

4-30

Getting Information about the Pixels in an Image

The following figure shows the Image Tool with pixel location and value displayed in the Pixel Information tool. For more information, see “Saving the Pixel Value and Location Information” on page 4-31.

Pixel under the pointer

Pixel value and location information

Pixel Information in Image Tool

Saving the Pixel Value and Location Information

To save the pixel location and value information displayed, right-click a pixel in the image and choose the Copy pixel info option. The Image Tool copies the x- and y-coordinates and the pixel value to the clipboard.

To paste this pixel information into the MATLAB workspace or another application, right-click and select Paste from the context menu.

4-31

Соседние файлы в папке 2read