Programming Assignments Matlab preferred here is a quick ma
Programming Assignments (Matlab preferred - here is a quick matlab tutorial. You may use C++ or Java or Python if you like) Image formation. In this small project, you are going to use Matlab to read, manipulate and write image data. The purpose of the project is to make you familiar with the basic digital image formations. Your program should do the following things: Read in a color image C1(x, y) = (R(x, y), G(x, y), B(x, y)) in Windows BMP format, and display it. Display the images of the three color components, R(x, y), G(x, y) and B(x, y), separately. You should display three black-white-like images. Generate an intensity image I(x, y) and display it. You should use the equation I = 0.299R + 0.587G + 0.114B (the NTSC standard for luminance). The original intensity image should have 256 gray levels. Please uniformly quantize this image into K levels (with K=4, 16, 32, 64). As an example, when K=2, pixels whose values are below 128 are turned to 0, otherwise to 255. Display the four quantized images with four different K levels and tell us how the images still look like the original ones. Quantize the original three-band color image C1(x, y) into K level color images CK(x, y)= (R (x, y), G(x, y), B(x, y)) (with uniform intervals), and display them. You may choose K=2 and 4 (for each band). Do they have any advantages in viewing and/or in computer processing (e.g. segmentation)? Quantize the original three-band color image C1(x, y) into a color image CL(x, y)= (R (x, y), G(x, y), B(x, y)) (with a logarithmic function), and display it. You may choose a function I\' =C In (I+1) (for each band), where I is the original value (0~255), I\' is the quantized value, and C is a constant to scale I\' into (0-255), and In is the natural logarithm. Please find the best C value so for an input in the range of 0-255, the output range is still 0 - 255. Note that when I = 0, I\' = 0 too.
Solution
Read and Write Image Data from DICOM Files
High Dynamic Range Images
| imread | Read image from graphics file |
| imwrite | Write image to graphics file |
| imfinfo | Information about graphics file |
| nitfinfo | Read metadata from National Imagery Transmission Format (NITF) file |
| nitfread | Read image from NITF file |
| dpxinfo | Read metadata from DPX file |
| dpxread | Read DPX image |
| analyze75info | Read metadata from header file of Analyze 7.5 data set |
| analyze75read | Read image data from image file of Analyze 7.5 data set |
| interfileinfo | Read metadata from Interfile file |
| interfileread | Read images in Interfile format |
