Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Celebrities > Cecil Adams > Re: One for the...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 40 Topic 22308 of 23154
Post > Topic >>

Re: One for the programmers or maths/logic geeks

by "Don K" <dk@[EMAIL PROTECTED] > May 11, 2008 at 01:17 PM

"John Hatpin" <RemoveThisjfhopkin@[EMAIL PROTECTED]
> wrote in message 
news:jn0e24tmtbn3gs4q5vfllodlp8e5smjkqj@[EMAIL PROTECTED]
> Don, I've read this through several times, coming back to it and
> trying again, but you're losing me each time.  Questions appear
> in-line:
>
> Don K wrote:
>
>>I'm just kibitzing here but how about something like this :
>>(read while waving hands wildly)
>>
>>Start by choosing a cell near the middle.
>
> Do you have to start near the middle, or does that just make it
> quicker?

To make it quicker. Choose a cell in the middle and look around it
for the biggest contiguous square.

>
>>Map the size of the largest contiguous square in each quadrant
>>around that cell. Call these first-order squares.
>
> What size squares?  are you talking about squares that go right to the
> boundaries, or just adjacent cells, or 2x2, or ...?

I'm saying look for the biggest square that touches the sample cell.

The way I read it, X and Y each go from 0-255.
Start with the cell at (127,127) and look around it.
The 1st quadrant goes from (127,127) to (255,255), etc.
Map the biggest contiguous square that touches (127,127) in the 1st quad.

Do the same for the other 3 quadrants.
Process the results to choose the biggest square considering all
quadrants.
For example
    the 1st quad might be 6x6
    the 2nd quad might be 3x3
    the 3rd quad might be 5x5
    the 4th quad might be 7x7
The largest 1st order square would be 8x8
This bit of info can be reused for all 64cells in that square without a
new search.

The largest 1st order rectangle would be 6x7

>
>>Notice that in each quadrant, the first-order square area applies
>>to every interior cell.
>
> And this is where I really get baffled - sorry ...

(Frantically waving my hands)
Do you get it now?


>
>>Next step would be to map 2nd-order squares on adjacent boundaries,
>>then 3rd-order, etc. and look for biggest rectangles. Maybe it would
>>be efficient to do a binary-split
>
> ... which is why by now I've no idea what you have in mind.


I mean the next step is to finish mapping the biggest contiguous square
associated with each cell by choosing the next sample point midway
between the previous boundary and the edges at 0 or 255 and repeating
the process until all cells have been mapped.

If it's useful, you could sort the mapping of biggest squares to pre-point
to the best candidate landing spots.

The 3rd step is to calculate the biggest rectangle that connects to a cell
by looking at the biggest square that would touch an edge along its
1st order square. (and then the outer edges after that, etc)

>>Enough hand-waving already!
>>I'm leaving it up to you to work out the details!
>
> Ach, I'll do the details!  I just need to understand your method
> first, it sounds intriguing.

All the breakthrough ideas that come to you in a dream, seem so
brilliant at the time, but not quite so logical once you wake up.

Don
 




 40 Posts in Topic:
One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-10 18:23:04 
Re: One for the programmers or maths/logic geeks
UaNeill@[EMAIL PROTECTED]  2008-05-10 10:33:01 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-11 01:12:21 
Re: One for the programmers or maths/logic geeks
huey.callison@[EMAIL PROT  2008-05-11 02:20:50 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-11 15:30:04 
Re: One for the programmers or maths/logic geeks
huey.callison@[EMAIL PROT  2008-05-14 00:34:41 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-20 01:24:38 
Re: One for the programmers or maths/logic geeks
spam.sc@[EMAIL PROTECTED]  2008-05-20 09:34:23 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-21 04:34:33 
Re: One for the programmers or maths/logic geeks
Snidely <Snidely.too@[  2008-05-12 20:47:49 
Re: One for the programmers or maths/logic geeks
"Don K" <dk@  2008-05-10 14:35:57 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-11 15:36:15 
Re: One for the programmers or maths/logic geeks
"Don K" <dk@  2008-05-11 13:17:01 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-20 01:31:39 
Re: One for the programmers or maths/logic geeks
xhoster@[EMAIL PROTECTED]  2008-05-11 21:52:24 
Re: One for the programmers or maths/logic geeks
Snidely <Snidely.too@[  2008-05-12 20:39:33 
Re: One for the programmers or maths/logic geeks
xhoster@[EMAIL PROTECTED]  2008-05-13 16:47:25 
Re: One for the programmers or maths/logic geeks
Greg Goss <gossg@[EMAI  2008-05-13 22:23:09 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-14 06:31:58 
Re: One for the programmers or maths/logic geeks
huey.callison@[EMAIL PROT  2008-05-14 01:40:34 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-20 01:50:25 
Re: One for the programmers or maths/logic geeks
ebenZEROONE@[EMAIL PROTEC  2008-05-14 07:07:41 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-14 06:27:08 
Re: One for the programmers or maths/logic geeks
huey.callison@[EMAIL PROT  2008-05-14 00:40:32 
Re: One for the programmers or maths/logic geeks
Snidely <Snidely.too@[  2008-05-13 10:55:01 
Re: One for the programmers or maths/logic geeks
Bob Ward <bobward@[EMA  2008-05-13 13:19:29 
Re: One for the programmers or maths/logic geeks
Opus the Penguin <opus  2008-05-14 02:26:49 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-14 06:28:15 
Re: One for the programmers or maths/logic geeks
huey.callison@[EMAIL PROT  2008-05-14 01:24:52 
Re: One for the programmers or maths/logic geeks
Snidely <Snidely.too@[  2008-05-13 23:01:18 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-20 01:52:57 
Re: One for the programmers or maths/logic geeks
Snidely <Snidely.too@[  2008-05-13 23:03:26 
Re: One for the programmers or maths/logic geeks
huey.callison@[EMAIL PROT  2008-05-14 02:31:41 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-20 02:03:57 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-20 01:45:19 
Re: One for the programmers or maths/logic geeks
Snidely <Snidely.too@[  2008-05-20 12:21:44 
Re: One for the programmers or maths/logic geeks
xhoster@[EMAIL PROTECTED]  2008-05-20 19:42:30 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-21 05:12:16 
Re: One for the programmers or maths/logic geeks
huey.callison@[EMAIL PROT  2008-05-21 01:56:55 
Re: One for the programmers or maths/logic geeks
John Hatpin <RemoveThi  2008-05-21 19:39:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 20:55:48 CDT 2008.