Lichtenstein bitplanes


Attribution:
Obraz jest oznaczony jako „Wymagane uznanie autorstwa” (attribution required), ale nie podano żadnych informacji o uznaniu autorstwa. Prawdopodobnie parametr atrybucji został pominięty podczas korzystania z szablonu MediaWiki dla licencji CC-BY. Autorzy mogą znaleźć tutaj przykład prawidłowego korzystania z szablonów.
Credit:
Praca własna
źródło:
Wymiary:
1330 x 536 Pixel (105812 Bytes)
Opis:

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.
Licencja:
Warunki licencji:
Creative Commons Attribution-Share Alike 3.0

Więcej informacji o licencji można znaleźć tutaj. Ostatnia aktualizacja: Mon, 19 Sep 2022 07:00:52 GMT