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

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

标准Lena测试图像下载

發布時間:2024/8/1 编程问答 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 标准Lena测试图像下载 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

? ? 在做圖像處理的時候我們往往會使用Lena圖像進行測試,但網上提供的測試圖標準不一。這是Rice University提供的標準測試圖,省去大家四處尋找之苦。另外,仔細閱讀這個鏈接,你還會發現其他有用信息^.^

? ?原文鏈接:?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.

總結

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

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。