lena.bmp
在做图像处理的时候我们往往会使用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:
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:
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.
相关阅读
详解如何下载JDK和如何配置JDK的环境变量--Windows10
目录 一.前言: 二.jdk安装 三.教你零基础配置环境变量 1.去哪里设置? 2.怎么设置?(先不讲缘由,后面再讲) (1)新建JAVA_HOME (2)新建CLASSPAT
DenseNet(2017年) 网络参考 DenseNet参考了ResNet和GoogleNet的优点:ResNet的特征passthrough layer(但ResNet的pass layer的特
BT下载软件有哪些?说到下载软件,您又了解多少?互联网技术在不断飞速发展,我们日常观看电影除了在线观看外,更习惯用高科技的下载技术来
小编由于下载project2016版爬各种论坛,发现最终他们都是几种收费打赏的形式进行下载,下面为大家提供一种傻瓜式教程: Project2016软
Qt和Qt Creator的区别 Qt是C++的一个库,或者说是开发框架,里面集成了一些库函数,提高开发效率。 Qt Creator是一个IDE,就是一个平台,一