Re: fast drawing in delphi
- From: "Maldona8" <maldona8@xxxxxxxxxxxx>
- Date: Tue, 20 Dec 2005 14:42:15 +0100
I see. I will try your idea...
It seems to be simply, tough...
The hexagons I use for making a neural network feature map (invented by
Teuvo Kohonen, in the early 70's)
In my work (as student), we have an incredible huge amount of data to
process. Each datum has 10 associated values.
Those values correspond to many 10-dimensional time-series. So, I put the
whole bunch of timeseries into a Kohonen map and see the
result in a Umatrix map. I developed a fast algorithm that identifies data
clusters in the Umatrix and then for visualization we need to redraw the
Umatrix and the 10 components into a 100x100 hexagons map.
"Andreas Koch" <nospam@xxxxxxxxxxxxxxx> a écrit dans le message de news:
do49sd$hvs$01$1@xxxxxxxxxxxxxxxxxxxx
> Maldona8 wrote:
>
>> does it mean that if I need to draw rectangles or circles
>> I have to write the whole bunch of drawing functions
>> like Circle(x1,y1,x2,y2) or rectangle(x1,y1,x2,y2) etc?
>
> Yes, it means you can't use the system drawing functions.
>
> I also suppose that you are trying some game map, e.g.
> you want to draw your 10.000 hexagons all at once, at
> fixed places.
> In that case, you don't need to write a hexagon(x,y)-drawing
> routine (you could if you wanted) but do it the other way
> round.
>
> Lets view a little map of only 3 hexagons, A, B and C
>
> ..AA......CC...
> .AAAA....CCCC..
> AAAAAABBCCCCCC.
> .AAAABBBBCCCC..
> ..AABBBBBBCC...
> .....BBBB......
> ......BB.......
>
> You know, hexagon A should be red, B blue and C green.
> So you paint line by line
>
> y=0
> x=0 background
> x=1 background
> x=2 oh, this is hex a, so red
> x=3 still red
> x=4 background
> ....
>
> y=
> x=0 background
> x=1 oh, this is hex a, so red
> x=2 red
> x=3 red
> x=4 red
> x=5 background
> ...
> etc
>
> If an pixel at x,y is inside a hexagon can be (more or
> less) simply calculated if you know the hexagons position
> and size.
>
>
.
- References:
- fast drawing in delphi
- From: Maldona8
- Re: fast drawing in delphi
- From: Andreas Koch
- Re: fast drawing in delphi
- From: Maldona8
- Re: fast drawing in delphi
- From: Andreas Koch
- Re: fast drawing in delphi
- From: Maldona8
- Re: fast drawing in delphi
- From: Andreas Koch
- Re: fast drawing in delphi
- From: Maldona8
- Re: fast drawing in delphi
- From: Andreas Koch
- fast drawing in delphi
- Prev by Date: Re: How to uncompress HTTP GZIP data
- Next by Date: Re: fast drawing in delphi
- Previous by thread: Re: fast drawing in delphi
- Next by thread: Re: fast drawing in delphi
- Index(es):
Relevant Pages
|