image resizing and pixel spacing
4 次查看(过去 30 天)
显示 更早的评论
In the reference Digital Image Processing (third edition) authored by Rafael C. Gonzalez and Richard E. Woods,
I have read the following paragraph in subsection 2.4.3 Spatial and Intensity Resolution:
Figure 2.20 shows the effect of spatial resolution in an image. The images in Fig. 2.20 (a) through (d) are shown in 1250, 300, 150, and 72 dpi, respectively. Naturally the lower resolution images are smaller than the original. For example, the original image is of size 3692 x 2812 pixels, but the 72 dpi image is an array of size 213 x 162. In order to facilitate comparisons, all the smaller images were zoomed back to the original size (the method used for zooming is discussed in subsection 2.4.4).
Thus, I have also read the following paragraph in subsection 2.4.4 Image Interpolation:
Fundamentally, interpolation is the process of using known data to estimate values at unknown locations. We begin the discussion of this topic with a simple example. Suppose that an image of size 500 x 500 pixels has to be enlarged to 750 x 750 pixels. A simple way to visualize zooming is to create an imaginary 750 x 750 grid with the same pixel spacing as the original, and then shrink it so that it fits exactly over the original image. Obviously, the pixel spacing in the shrunken 750 x 750 grid will be less than the pixel spacing in the original image. To perform intensity level assignment for any point in the overlay, we look for its closest pixel in the original image and assign the intensity of that pixel to the new pixel in the 750 x 750 grid. When are finished assigning intensities to all the points in the overlay grid, we expand it to the original specified size to obtain the zoomed image. This called nearest neighbor interpolation.
Why do we need to change the pixel spacing when applying interpolation? I think interpolation is considered with finding missing pixel values when getting images with different dimensions but with the same pixel spacing. I would be grateful if you could help me understanding and solving this conflict.
I need to understand what does image resizing do? Does it only change the dimensions of the image, for example, from 256×256 to 128×128 with the same pixel spacing (the same dpi)? Or does it change the dpi or pixel spacing in an image? If I need to increase the size of the image and also increase its dpi, how can I do this?
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!