Just webcam capture see in webcam_capture
https://wiki.archlinux.org/index.php/webcam_setup
http://www.linuxintro.org/wiki/Set_up_a_Webcam_with_Linux
There are the following functions:
- obtain_intensity(input image) -> it returns the intensity of the central pixel of the input image.
- draw_blue_point(input image) -> it returns an image with its central pixel in blue;
- green_rectangle(input image,rectangle width, rectangle height) -> it returns an image with a green color rectangle on its center;
- convert_gray(input image, rectangle width, rectangle height) -> it returns an image with a grayscale color rectangle located in the center of the image;
- inversion(input image,rectangle width,rectangle height)-> it returns an image with a inverted color rectangle located in the center of the image;
- blue_filtering(input image,int width, int height) -> it returns the input image with blue filtration;
- red_filtering(input image,int width, int height)) -> it returns the input image with red filtration;
- green_filtering(input image,int width, int height)) -> it returns the input image with green filtration;
It obtains the following images:
- Images with a changed rectangle: original image, grayscale rectangle, inverted rectangle;
- Images with a filtering: blue, red, green;
- Make a new directory named build
- go to build and execute cmake .. and then make.
- Run file ./webcam_capture - (you have to have a webcam previously installed).