05-10-2012, 12:46 PM
INTRODUCTION TO IMAGE PROCESSING USING MATLAB
IMAGE PROCESSING.docx (Size: 22.63 KB / Downloads: 48)
Image Display
imshow(f,g) % f is an image array & g is no of intensity levels used to display it
imshow('pout.tif') % here by default intensity level is 256
pixval % displays the Euclidean distance between the initial and current cursor conditions
Changing the number of gray Levels
The quality of a gray-level image is significantly affected by its gray-level resolution. Other words increasing the number of bits per pixel have a great effect in improving the quality of gray-level images. This is because that a higher number of gray levels would give a smooth transition along the details of the image and hence improving its quality to the human eye.
Changing the spatial resolution
Changing the spatial resolution of a digital image, by zooming or shrinking, is an operation of great importance in a wide range of applications (i.e. in digital cameras, biomedical image processing and astronomical images). Simply, zooming and shrinking are the operations of oversampling and undersampling a digital image, respectively. Zooming a digital image requires two steps: the creation of new pixel locations, and assignment of gray levels to those new locations. The assignment of gray levels to the new pixel locations is an operation of great challenge. It can be performed using two approaches:
Nearest Neighbor Interpolation: each pixel in the zoomed image is assigned the gray level value of its closest pixel in the original image.