D
delphilxh
Unregistered / Unconfirmed
GUEST, unregistred user!
1) Using the code provided, add new code to perform gamma correction of an image. The value for gamma should be input to the program at run-time. Full marks will be awarded to a program which runs efficiently (hint: there are only 256 intensity levels possible in these images).
2) Write another program to perform all of the stages of convolution. Full marks will be awarded to a program which performs convolution correctly with any size kernel (including even sizes such as 4x4).
Example filter kernels:
3x3 5x5
1 3 1 1 1 1 1 1
3 9 3 1 1 1 1 1
1 3 1 1 1 1 1 1
(Blur) 1 1 1 1 1
1 1 1 1 1
(Box)
2) Write another program to perform all of the stages of convolution. Full marks will be awarded to a program which performs convolution correctly with any size kernel (including even sizes such as 4x4).
Example filter kernels:
3x3 5x5
1 3 1 1 1 1 1 1
3 9 3 1 1 1 1 1
1 3 1 1 1 1 1 1
(Blur) 1 1 1 1 1
1 1 1 1 1
(Box)