Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!m13g2000yqc.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: coloured checkerboard
Date: Wed, 18 Apr 2012 03:18:31 -0700 (PDT)
Organization: http://groups.google.com
Lines: 12
Message-ID: <8540633b-aca4-4581-a9e5-0196e5b13e4e@m13g2000yqc.googlegroups.com>
References: <jmkf6l$apu$1@newscl01ah.mathworks.com> <35c6f6aa-5193-4431-8491-81b14c57b8e1@r9g2000yqd.googlegroups.com>
 <9f8bfdc6-0479-4afd-94b5-442650ff7227@w7g2000vbg.googlegroups.com> <jmlubr$p0b$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: 184.57.144.134
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1334744312 29422 127.0.0.1 (18 Apr 2012 10:18:32 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 18 Apr 2012 10:18:32 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: m13g2000yqc.googlegroups.com; posting-host=184.57.144.134; posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0,gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:764969

On Apr 18, 4:35 am, "David Epstein"
<David.Epstein.s...@remove.warwick.ac.uk> wrote:
> Thanks for posting the code. You made a checkerboard with only two colours (not seven). My basic image size is 1000x1000 and I want a checkerboard with 7 colours consisting of 4x4 blocks, each block in a single colour. These 7 colours should follow each other in cyclic order along each row, and in cyclic order along each column. In my 1000x1000 matrix, you will see all 7 colours in each row and all 7 colours in each column.

-----------------------------------------------------------
Luckily my code is general enough to adapt so that you have 7 colors.
It should be no problem.