Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the difference between imread and imwrite ?

user-image
Question added by muhammed asad p t
Date Posted: 2016/08/10
ibrahim bouhadar
by ibrahim bouhadar , Project Quality Engineer, PMP® , Jacobs Engineering

imread is used to read a picture file from the PC and stored into a matrice or variable 

imwrite is used to create an image picture 

Tariq Hashmat Tauheed
by Tariq Hashmat Tauheed , Business Development Lead , DataLEADS

The command 'iamread' reads graphic files from the system disk space, while 'imwrite' writes graphic image files onto the system disk space. The disk space accessed is in accordance with the specified file path.

  • To read a graphics file format image use imread.

  • To write a graphics file format image, use imwrite.

RAHUL JAISWAL RAJESH JAISWAL
by RAHUL JAISWAL RAJESH JAISWAL , Electrical Site Engineer , LARSEN & TOUBRO LTD

imread-load an image from a file

imwrite-save an image to an specific file

AISSAM JAGGOU
by AISSAM JAGGOU , actualy , dakhla

imread for loading a image in serveur but imwrite for save image in the file

Youssef Ratbaoui
by Youssef Ratbaoui , Gestion de vente , centre de l'ile

Imread : Load an image 

Imwrite : Save your transformed image in a file on disk 

mohamad elorr
by mohamad elorr , Senior Electrical Engineer , Saudi Oger

imread (file name): it reads the image to I, after infering format of the file from it's content.

imwrite(A, file name, fmt): writes the image A to the file specified in file name in the format specified by fmt.

Alabi Bojesomo
by Alabi Bojesomo , Research Engineer , Masdar Institute of Science and Technology

The two are both used with image data.

 

Imread: it's used for reading an image data as an n-dimensional matrix depending on the format of the image being read.

 

imwrite: it's used for writing matrix data as image file that could also be view using image viewers

Md Rakibul Alam
by Md Rakibul Alam , Lecturer , Sonargaon University

imread is a function that reads image data and imwrite writes image data.

function imread(filename, format) when executed will open the data of a file. it takes two input arguments. filename and format of the file mentioned in first argument(filename).

function imwrite() when executed will create an image file if proper arguments are provided. input arguments of this function vary. more info will be provided at mathworks website.

Hope it Helped

SAUD ALSHAGHDLY
by SAUD ALSHAGHDLY , Technical Training Leader - Business Development C-KPI , National Power Academy

imread : image data o/P

imwrite : i/p data to image

More Questions Like This