HW2, Computer problem, Part (a)
EECS 203A, Digital Image Processing. UCI. Fall 2004
Nasser Abbasi
Define the transformation and generate 2 lookup tables and plot the curves. I also list the first and last 5 rows in each table for each curve to better see the values. The first column in the table is the r values and the second column is the s values.
In[27]:=
0 | 0 |
1 | 6 |
2 | 10 |
3 | 13 |
4 | 16 |
0 | 0 |
1 | 0 |
2 | 0 |
3 | 0 |
4 | 1 |
Now set current directory to where the image is (same folder as this note book) and read the image file
In[34]:=
Now that the image is read into data, we display it before appying GLT on it.
In[39]:=
Now apply first GLT to this image.c=1.0,γ=0.67 and display the result
In[40]:=
Now apply second GLT to this image.c=1.0,γ=1.5 and display the result
In[45]:=
Conclusion
With γ=1.5,the new image is darker than the original image.With γ=0.67,the new image is lighter than the original image.Looking at the curves we see that with smaller γ darker areas are spread more over to the lighter gray level,and the reverse happens with higher γ
Created by Mathematica (October 19, 2004)