Matrix Stretching Problem [message #2939] |
Fri, 07 October 1994 02:40 |
Kay Behnke
Messages: 1 Registered: October 1994
|
Junior Member |
|
|
idlusers-news-gateway:
id AA25504; Fri, 7 Oct 94 10:40:41 +0100
id KAA20918 (8.6.9/2.4) for <idlusers@maz.sma.ch>; Fri, 7 Oct 1994 10:40:35 +0100
id AA14100; Fri, 7 Oct 1994 10:42:03 +0100
Mime-Version: 1.0
Hi there,
I have a problem of displaying the content of a matrix with values between
0 and 1 in a drawing widget. The problem is not the display itself, but
the fact that the size of the matrix (msize x msize) and the size of the
drawing area (dsize x dsize) are different (dsize > msize) and that I
would like to use the whole drawing area for this output.
What I am doing at the moment is the following:
First, let's assume that the size of the drawing area is strFactor larger
than the size of the matrix. So, I allocate a matrix of dsize x dsize and
copy each value of the original matrix strFactor x strFactor times into
the new allocated matrix (actually the procedure copies the original value
to a square of size strFactor to the new matrix).
xxxyyyzzz
xxxyyyzzz
xxxyyyzzz
xyz aaabbbccc
abc -> aaabbbccc (to illustrate it ...)
def aaabbbccc
dddeeefff
dddeeefff
dddeeefff
That this procedure takes some time (for a drawing area of 600 x 600
pixels and a matrix of 100 x 100) is easy to imagine, I think.
So my question is, whether YOU know of any features which would improve
this procedure and would make it faster.
Thanks for any suggestions,
Kay (behnke@mpi.nl)
---
Kay Behnke
Max Planck Institute for Psycholinguistics
Nijmegen
The Netherlands
|
|
|