Skip to content

etjabajasphin/Read-and-Write-Image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

READ AND WRITE AN IMAGE

AIM

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.

Software Required:

Anaconda - Python 3.7

Algorithm:

Step1:

Choose an image and save it as a filename.jpg

Step2:

Use imread(filename, flags) to read the file.

Step3:

Use imshow(window_name, image) to display the image.

Step4:

Use imwrite(filename, image) to write the image.

Step5:

End the program and close the output image windows.

Program:

Developed By:

Register Number:

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

Output:

i) Read and display the image



ii)Write the image



iii)Shape of the Image



iv)Access rows and columns



v)Cut and paste portion of image



Result:

Thus the images are read, displayed, and written successfully using the python program.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors