Demo entry 6311879

cotr

   

Submitted by drumin on Oct 25, 2016 at 01:17
Language: TeX. Code size: 332 Bytes.

function out=zad1()

RGB = ReadImage('lena.png');
Image=RGB2Gray(RGB);

b=input('Podaj b:'); 

for i=0:255
if b>0    
LUT(i+1)=max(0,i+b);
else
LUT(i+1)=min(255,i+b);
end
Image(:,:)=LUT(Image(:,:));

endfunction

h=CreateHistogram(Image);
plot(h); 
//plot(LUT);
figure();
zad1(Image);
ShowImage(Image,'Image');

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).