Re: Invert Black/White Colors of Binary Images
- To: mathgroup at smc.vnet.net
- Subject: [mg84220] Re: Invert Black/White Colors of Binary Images
- From: Szabolcs <szhorvat at gmail.com>
- Date: Fri, 14 Dec 2007 04:07:18 -0500 (EST)
- References: <fjnupg$fhc$1@smc.vnet.net> <fjq02p$n5j$1@smc.vnet.net>
On dec. 13, 02:58, dh <d... at 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).