To write a python program using OpenCV to do the following image manipulations. i) Read, display, and write an image. ii) Access the rows and columns in an image. iii) Cut and paste a small portion of the image.
Anaconda - Python 3.7
Choose an image and save it as a filename.jpg
Use imread(filename, flags) to read the file.
Use imshow(window_name, image) to display the image.
Use imwrite(filename, image) to write the image.
End the program and close the output image windows.
i) #To Read,display the image
ii) #To write the image
iii) #Find the shape of the Image
iv) #To access rows and columns
v) #To cut and paste portion of image
Thus the images are read, displayed, and written successfully using the python program.