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.math.mathematica

Topic: Invert Black/White Colors of Binary Images
Replies: 5   Last Post: Mar 5, 2012 1:58 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
szhorvat@gmail.com

Posts: 1,416
Registered: 4/8/06
Re: Invert Black/White Colors of Binary Images
Posted: Dec 14, 2007 4:07 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On dec. 13, 02:58, dh <d...@metrohm.ch> wrote:
> Hi Tara,
>
> simpliy replace 0 by 1 and vice versa:
>
> image = image /. {1 -> 0, 0 -> 1}


Hm, that's the same as using (1 - image).





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.