As the course ‘Robotic Vision’ has been already finished officially on 8th July, I got an email today regarding my certificate of participation in the course by Professor Peter Corke. So I got it today in pdf format.
Today I edited the function getColor function to have 3 arguments: input image (im), color that we want (clr) and threshold value (thr).
This is done to enhance the image. Every image can’t be threshold with a default value.
As I discussed in previous post that there was a problem of some blobs having area =1 i.e. there are some white dots in the image. To solve this, I used gamma correction.
Hene, the function can be used as:
to extract binary image with highlighted pixels as red. Also note that I used gamma corrected image as input to getColor function and threshold value of 0.7.