Codes for image processing with openCV