Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 06 Feb 2013 08:00:47 -0600 Date: Wed, 06 Feb 2013 14:00:45 +0000 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: compare several boolean =?windows-1252?Q?matrix=92s?= References: <8f60207e-f848-490b-a402-7cc1aba657e9@googlegroups.com> <5361ab6d-3277-40e9-97eb-d990502be610@googlegroups.com> In-Reply-To: <5361ab6d-3277-40e9-97eb-d990502be610@googlegroups.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 55 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-Uvu8oKNI7TxJDSLY8fDA4FizykVJSnKhMmgUuiIMNlOLP1Uispyqn2Dk8J15mDWQeZCfAkM3K9jzFS9!GDqA0G732uPDyzyUZLXiZOYUbWnFWjbW/O4FPTDEavWQAwbaFj7YDDvGP4qFwNGLNIWm9GVVvGM= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2569 Xref: csiph.com comp.lang.java.programmer:22162 On 06/02/13 12:11, Keivan Jafari wrote: > Den onsdagen den 6:e februari 2013 kl. 12:55:50 UTC+1 skrev Arved Sandstrom: >> On 02/06/2013 07:23 AM, Keivan Jafari wrote: >> >>> Hi again, [snip] > > Consider a matrix as a picture of size boolean[N][M] > the elements can only get value true or false. > So I have 25 picture's(Matrix's), I want to build a new picture(Matrix) based > on 25 picture's(Matrix's) Is this what you mean (simplified) Assuming 0 == false 1 == true and assuming we have the following simple matrices matrix 1 0 | 1 | 0 1 | 1 | 0 0 | 0 | 1 matrix 2 1 | 1 | 1 0 | 1 | 0 1 | 1 | 1 matrix 3 0 | 0 | 1 0 | 0 | 1 1 | 1 | 0 ============================================== result assuming 2 input 1 output XOR logic gate working from top down. e.g ((matrix1[0][0] XOR matrix2[0][0]) XOR matrix3[0][0]) = 1 etc 1 | 0 | 0 1 | 0 | 1 0 | 0 | 0 (EAOE :-) Different results would be obtained by using different logic gates e.g OR, NOT, AND, NAND etc etc lipska -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun