function terang
x=imread('cameraman.tif');
y=x;
x=double(x);
[baris kolom]=size(x);
for i=1:baris,
for j=1:kolom,
x(i,j)=x(i,j)+100;
if x(i,j)>255;
x(i,j)=255;
elseif x(i,j)<0
x(i,j)=0;
else
x(i,j)=y(i,j);
end
end
end
out=uint8(x);
subplot(2,2,1), imshow(y);
subplot(2,2,2), imhist(y);
subplot(2,2,3), imshow(out);
subplot(2,2,4), imhist(out);
(pastikan gambar cameraman.tif terdapat pada direktori matlab)
It's Me
Labels
- Ahkwat (5)
- C++ (14)
- Daily Me (3)
- Database (11)
- Flash (2)
- Java (4)
- Konsep Bahasa Pemrograma (2)
- Pengolahan Citra (3)
- Product (2)
- Tentang Blog (5)
No comments on "Pengolahan Citra - Effect Brightness dengan Matlab