Professional Documents
Culture Documents
chieu rong
c) Get the breadth and height of the image, using MATLAB function size().
chieu cao
d) Get the values of light intensities of pixels [50:100, 50:100] and then show its
cuong do sng
corresponding image patch.
rap noi
anh dong vi
b) To understand how three colors RGB form the image, display each color component
image separately.
rieng
b) Create and show the grayscale image [0 16 32 64 128 255; 255 128 64 32 0] with the
proper magnification. $ote: by default, the range is 0 to 1 (type: double); however, you
vung
can convert the image values from double type to unsigned integer 8 bits type by using
unit8(). chuyen gia tri image tu
luong tu hoa
HW4. Quantization
duoc bieu dien
A typical digital image has pixel values between 0 and 255 represented in 8-bit numbers.
chi cho 5 bit de bieu dien 1 diem anh
Now, suppose you are allowed to have only 5 bits to represent each pixel value, which
2 mu 5 =32 code can only represent 32 different codes, but the pixel value should still be between 0 and
gan
khac nhau
255 for display. The codes should be assigned to represent values in order to minimize
the mean square error when the original pixel values are uniformly distributed between 0
sai so binh phuong trung binh
and 255.
anh goc 2x2 duoc bieu dien bang 8 bit pixels
The following is an example original 2x2 image represented in 8-bit pixels.
255 87
150 30
hien thi
Use lena.bmp as the original image (i.e. x[n,m]). Verify your guesses by displaying
bieu dien
resulting images of (i)(ii)(iii) in your report.
ket qua tren bao cao
Use help fliplr() and flipud() to see more information.
san xuat
dang ve
b) Produce the negative of the lena.bmp image. Describe the visual appearance of the
final result and speculate how this might be used in some practical applications (science,
dau co
movies, stc.)
tac dung cua am ban trong y hoc, khoa hoc,phim anh
HW6. Salt-pepper noise nhieu muoi tieu
Read in HW6.gif image, which contains salt-pepper (shot) noise.