How to read image from pixel values

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

3 件のコメント

Image Analyst
Image Analyst 2011 年 9 月 8 日
Here's a suggestion:
http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer
Read that, then explain better what you mean. Otherwise all I can suggest to to look at things like dlmread(), fread(), and similar kinds of text reading functions.
Jim
Jim 2011 年 9 月 8 日
I mean
How to convert pixel values(in a file) into image
Thanx in advance
Jan
Jan 2011 年 9 月 8 日
Please, Vivek, post any details. There is absolutely no chance, that we can guess how the "pixel values" are stored in the file.

サインインしてコメントする。

 採用された回答

Andreas Goser
Andreas Goser 2011 年 9 月 8 日

1 投票

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.

3 件のコメント

Jim
Jim 2011 年 9 月 13 日
Hi,
I am using this command for finding mean of the 10 images
mean(cat(3,IMG1,IMG2,IMG3,IMG4,IMG5,IMG6,IMG7,IMG8,IMG9,IMG10),3)
Here 3 is the dimension
Why to use 3 dimension here?
When I am using 2 dimensional I am not getting the answer.why?
can u suggest something about this
Thanks in advance
Walter Roberson
Walter Roberson 2011 年 9 月 13 日
Just answered this in your other topic. Duplicating questions makes for more work :(
Jim
Jim 2011 年 9 月 21 日
Hi,
thanks for ur reply
I need to remove pixels with zero pixel value in an image(dead pixels)
Can you suggest me something about this
Thanks in advance

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by