Image:Lichtenstein bitplanes.png

From Wikipedia, the free encyclopedia

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

[edit] Summary

Description

the grayscale picture on the left is the original image, the 8 binary images on the right are the bit-planes of the original one. They are 8 because the input has 8 bit/pixel. I have created them in the following way. first I have used the Image:Lichtenstein img processing test.png test image, saving it on my harddisk as "castle.png". Then I have used the following Matlab code:

clear all

% read image
img=imread('castle.png');

% convert it to grayscale
img=rgb2gray(img);

img=imresize(img,0.5,'bicubic');

[x,y]=size(img);

bitplanes=zeros(x,y,8);

for i=1:x
    for j=1:y
        binary=de2bi(img(i,j),8,'left-msb');
        for k=1:8
            bitplanes(i,j,k)=binary(k);
        end
        
    end
end

imwrite(img,'original.png'); % original grayscale image
imwrite(bitplanes(:,:,1),'bit1.png'); % MSB
imwrite(bitplanes(:,:,2),'bit2.png');
imwrite(bitplanes(:,:,3),'bit3.png');
imwrite(bitplanes(:,:,4),'bit4.png');
imwrite(bitplanes(:,:,5),'bit5.png');
imwrite(bitplanes(:,:,6),'bit6.png');
imwrite(bitplanes(:,:,7),'bit7.png');
imwrite(bitplanes(:,:,8),'bit8.png'); % LSB

then I put them all together using GIMP. I have optimized the PNG using optipng.

Source

self-made

Date

June 2007

Author

Alessio Damato

Permission
(Reusing this image)

see below

Other versions
The original picture
The original picture

[edit] Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation license, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation license".

Aragonés | العربية | Asturianu | Български | বাংলা | ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী | Brezhoneg | Bosanski | Català | Cebuano | Česky | Dansk | Deutsch | Ελληνικά | English | Esperanto | Español | Eesti | Euskara | فارسی | Suomi | Français | Gaeilge | Galego | עברית | Hrvatski | Magyar | Bahasa Indonesia | Ido | Íslenska | Italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Kurdî / كوردی | Latina | Lëtzebuergesch | Lietuvių | Bahasa Melayu | Nnapulitano | Nederlands | ‪Norsk (nynorsk)‬ | ‪Norsk (bokmål)‬ | Occitan | Polski | Português | Română | Русский | Slovenčina | Slovenščina | Shqip | Српски / Srpski | Svenska | తెలుగు | ไทย | Türkçe | Українська | اردو | Tiếng Việt | Volapük | Yorùbá | ‪中文(中国大陆)‬ | ‪中文(台灣)‬ | +/-

Some rights reserved
Creative Commons Attribution iconCreative Commons Share Alike icon
This file is licensed under the Creative Commons Attribution ShareAlike license versions 2.5, 2.0, and 1.0

العربية | Български | Català | Česky | Dansk | Deutsch | English | Español | Euskara | فارسی | Français | עברית | Italiano | 日本語 | 한국어 | Lietuvių | Nederlands | Polski | Português | Русский | Svenska | தமிழ் | Türkçe | 中文 | 中文 | +/-

You may select the license of your choice.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current17:02, 4 June 20071,330×536 (103 KB)Alejo2083
16:54, 4 June 20071,331×537 (108 KB)Alejo2083 ({{Information |Description=the grayscale picture on the left is the original image, the 8 binary images on the right are the bit-planes of the original one. They are 8 because the input has 8 bit/pixel. I have created them in the following way. first I ha)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):