The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Problem,Store colored image in a text file
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 11
Registered: 11/17/12
Problem,Store colored image in a text file
Posted: Nov 26, 2012 4:42 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello ,

I used this code to store image in text file but it not work good .

for i=1:3
dlmwrite('M.txt', d(:,:,i),'-append');

the result of run this code in a text file is 240*960.R G B

Please, I need another code to store colored image in file ,So that the image stored red, green and blue.I mean if image 240*320 to each color when stored in file
store 240*320 to red then green and finally blue.(the matrix in file will be 720*320).

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.