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: matrix to image
Replies: 5   Last Post: Sep 23, 2011 4:08 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Abbas Cheddad

Posts: 92
Registered: 8/20/07
Re: matrix to image
Posted: Sep 23, 2011 4:08 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

As I understand from your 1st message, there are two problems you'r facing:

1) When I call 'pic2()' why it prints the matrix?

Probably, like Steven says, you missed the semicolon
Image=pic2();

2) Why I dont get image where the pixels are black or white?

As I said convert to logical before writing the image to a file.
imwrite(logical(x),'Output.png');

gpicview has nothing to do with Matlab and if you run into any bugs in displaying images you need to contact the guys who are behind that open source image viewer.

Abbas



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.