For this image enhancement we use the following game transformation s = c r^γ where c and γ are positive constants. As the formula implies, we hava a straight line when γ is 1. When γ is less than 1 we have high intensity level for the corresponding input intensity level which means we have a lighter image and vice versa when γ is greater than 1.
As we did in previous example, we change the inside of nested for loops so that it becomes B(k,l) = c*(A(k,l).^y); .
 |
| when y = 0,6 |
 |
| when y = 0,3 |
Suppose I have this washed out image here. To make it more visible, I can use gamma transformation so that I get darker images with y = 4 and y =5.
 |
| y = 4 |
No comments:
Post a Comment