日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

标准Lena测试图像下载

發(fā)布時(shí)間:2024/8/1 编程问答 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 标准Lena测试图像下载 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

? ? 在做圖像處理的時(shí)候我們往往會(huì)使用Lena圖像進(jìn)行測(cè)試,但網(wǎng)上提供的測(cè)試圖標(biāo)準(zhǔn)不一。這是Rice University提供的標(biāo)準(zhǔn)測(cè)試圖,省去大家四處尋找之苦。另外,仔細(xì)閱讀這個(gè)鏈接,你還會(huì)發(fā)現(xiàn)其他有用信息^.^

? ?原文鏈接:?http://www.ece.rice.edu/~wakin/images/

? ??

Wet Paint

This test image was taken by our group in Duncan Hall at Rice University. The Matlab file for the 1024x1024 image is?here.


Lena/Lenna

There seem to be many versions of the Lena (aka "Lenna") test image available. This problem was noted by Shapiro in his 1993 zerotree paper, and it remains surprisingly true today. This web page is an attempt to clear up some of the confusion (and hopefully not add to it).

The files on this page are given in lossless compression formats. These can be imported into Matlab or opened using photo-editing software. The?imread?command in Matlab is often useful for importing files such as tiff or bmp. (You may need to convert the data to type double after loading it). For example:

  • lena512 = imread('lena512.bmp');
    lena512 = double(lena512);

To write an image to a file, use?imwrite:

  • imwrite(uint8(lena512),'lena512.bmp','bmp');

512x512 Color (24-bit)

This seems to be a pretty widely accepted standard, which originated from a scan of the published photograph (see?The Lenna Story). This version is also provided at the?USC-SIPI Image Database.

  • TIFF:?lena512color.tiff?(787kB)

512x512 Grayscale (8-bit)

There doesn't seem to be as much agreement on this version of the image. At some point, the original color image needed to be converted to grayscale. As Shapiro noted, options included taking only the green component of the RGB representation, or using a luminance-only version. You could also average the RGB components, etc.

I'm not sure how the following version was generated, but it is provided by the?Image Communications Lab at UCLA?(they apparently obtained it from RPI).

Each of the following files should contain the same information. If there is truly a?standard?version of the 512x512 Grayscale Lena, this seems to be it.

  • BMP:?lena512.bmp?(263kB)

    PGM:?lena512.pgm?(262kB)

    MATLAB:?lena512.mat?(262kB)

Comparing Different Versions

To illustrate the importance of using a standard version, let's look at a few different ones that are floating around. We'll compress each of them using a JPEG2000 coder (obtained from?The JasPer Project).

You can see the Matlab versions of the images?here. If you click on the following links, you can see standard jpg files. (These are just for viewing and comparision purposes - use the matlab files for experiments!)

Image 1?is the standard which is discussed in the above section.?Image 2?is another version which I've seen, and it looks and behaves very similar to the standard.?Image 3?is obtained by taking the green component from the 24-bit original (described above). It appears darker than the others, and it is harder to compress.?Image 4?is yet another version that seems to be floating around. Visually it is very different from the others (it has less detail), and it is much easier to compress. Results are shown below.

總結(jié)

以上是生活随笔為你收集整理的标准Lena测试图像下载的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。