-
Notifications
You must be signed in to change notification settings - Fork 12
Assignment 4
For this assignment you will be given partially completed skeleton code that contains some of the logic you will need. All areas that you need to add or modify code to to complete the assignment requirements will be marked with a TODO
comment and some more specific instructions. It is not necessary to add or modify code outside these sections.
Before you run the algorithm to build F
, you need to build a histogram of the image that will be transformed. You may do this with a single numpy
call, or you can implement it yourself.
Implement the algorithm for building the point operation that transforms each pixel. This can be done almost exactly like in the pseudo-code.
Use the array built in the previous step to transform the image. Remember that F
is a look-up table that maps input pixel values to output pixel values.
The Lecture 14 slides contain pseudo-code for the algorithm that builds the operation F
.