MATLAB: How to read image from pixel values

digital image processing

Hi,
I need to read image from pixel values in .txt file
can anyone suggest something about this
Thanks in advance

Best Answer

An image in MATLAB is an array (matrix) of pixel values. I'd say you have 2 steps. 1. Importing the TXT file. 2. Display the image. For 1. there are tons of options. Read the doc, try IMPORTDATA and other commands and if you need help, ask here. For 2. the commands are IMAGE or IMVIEW.