We must accept finite disappointment, but we must never lose infinite hope

关于图像分辨率

上一篇 / 下一篇  2008-06-24 17:45:28

LUPA开源社区5S6yG y,CQ

空间分辨率和幅度分辨率LUPA开源社区1mfcxTP0E]

Y:XvL Xfu;b0一幅图像必须要在空间和灰度上都离散化才能被计算机处理。空间坐标的离散化叫做空间采样(简称采样),他确定了图像的空间分辨率;而灰度值的离散化叫做灰度量化(简称量化),他确定了图像的幅度分辨率。LUPA开源社区|:T ByV_

LUPA开源社区&Jv5tru*{ilG

   设F,X和Y均为实整数集,下面用数学语言来描述采样和量化。采样过程可看作将图像平面划分成规则网格,每个网格中心点的位置由一对笛卡尔坐标(x,y)所决定,其中x是X中的整数,y是Y中的整数。令f(.)是给点对(x,y)赋予灰度值的函数,那么f(x,y)就是一副数字图像,而这个赋值过程就是量化过程。LUPA开源社区oj}:|tnh1k

LUPA开源社区't3XT]5D Z+p)T

    如果一幅图像的尺寸(空间分辨率)为M×N,表明在成像时采了MN个样,或者说图像包含了MN个像素。如果对每个像素都用G个灰度值中的一个来赋值,表明在成像时量化成了G个灰度级(幅度分辨率)。在数字图像处理中,一般将这些值取为2的整数次幂。

ac*mURm+l;DA0

o!X.uJK9\OK0存储一幅图像所需的数据量由图像的空间分辨率和幅度分辨率决定。图像的空间分辨率是由采样确定的,图像的幅度分辨率是由量化确定的,两者共同确定了图像的显示质量和存储图像的数据量。

l F*d)P ]6T(\%QV0 LUPA开源社区"Wd,]f|

                        -------------------章毓晋  《图像工程》中关于分辨率的解释LUPA开源社区2`)z.}9aF:O_7\

LUPA开源社区9L5|*Uf V8P

Spatial ResolutionLUPA开源社区jI&i*? [

LUPA开源社区BaX9^1k `

Spatial resolution is the density of pixels over the image :the greater the spatial resolution, the more pixels are used to display the image. We can experimant with spatial resolution with MATLAB'S imresize function. Suppose we have an 256*256 8-bit grayscale image saved to the matrix x.Then the command

WM+k;Q,URH9{$h+x0

&y$C C7Rqb^I*ze0    imresize(x,1/2);LUPA开源社区r/jp)LFJ5}%J

LUPA开源社区b/VV/qiCf

will halve the size of the image. It does this by taking out every other row and every other column,thus leaving only those matrix elements whose row and column indices are even.

QKC"n Yvw5jpH }0 LUPA开源社区L3SU4F bw6d;r

If we apply imresize()to the result with the parameter 2 rather than 1/2,all the pixels are repeated to produce an image with the same size as the original, but half the resolution in each direction.By changing the parameters of imresize,we can change the effective resolution of the image to smaller amounts:imresize(imresize(x,1/4),4);.....LUPA开源社区,fV:T4P0j$Y6K6w1T

LUPA开源社区0F4S2pb5F^ @ ?0R

     -----Alasdair McAndrew 《Introduction to Digital Image Processing with Matlab》

J'J _,R#eAt&B0

j~.J8U6Cl#c D0                    

];z)@#y2c3@0

y^DHU.p0P-B'cp0                                         --------------------冈萨雷斯《数字图像处理》中的一个示例

.c"p#qJ b:a0 LUPA开源社区wZ!dHa _H k

所以,图像的空间分辨率其实就是采样点数。图像的大小就表示了其分辨率的大小。小波分解后图像分辨率降低是同样道理,由于小波分解是一个下采样的过程,分解之后图像大小变为原始图像的1/2^J,就是说分辨率降为原来的1/2^J.直观其间,可以通过复制像素,使其为同样大小,此时,小的空间分辨率图像即出现马赛克效应。LUPA开源社区d4y4w2L8h U


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的栏目

日历

« 2008-12-05  
 123456
78910111213
14151617181920
21222324252627
28293031   

数据统计

  • 访问量: 3602
  • 日志数: 58
  • 图片数: 1
  • 建立时间: 2008-02-28
  • 更新时间: 2008-12-02

RSS订阅

Open Toolbar