
Today, I've learned how to introduce several functions to perform desired effects on the images taken by the webcam. Although the program was extremely complicated to understand, I finally got a general concept after the explanation from the teacher. In this practice, the trickiest part is the application of pointer named "ptr" in the program. Pointer is a critical mechanism to deal with the pixel especially for the colored images which contain 3 bytes in each pixel. Moreover, since there are 3 bytes in each pixel, the variable "widthStep" is available to use. Finally, I was able to make the images into blue, green and red. It was quite amazing when I saw the webcam window turned out the result.
沒有留言:
張貼留言