Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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

Advanced Search

Back to Topic List Back to Topic List  
luma

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 .

path='E:\Matlab\bin\seq';
d=imread([path,int2str(100),'.jpg']);
for i=1:3
dlmwrite('M.txt', d(:,:,i),'-append');
end

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).
R
G
B



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.