comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Matrix Stretching Problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Matrix Stretching Problem [message #2939] Fri, 07 October 1994 02:40
Kay Behnke is currently offline  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
[Message index]
 
Read Message
Previous Topic: IDL installation problem on DEC AXP OSF/1
Next Topic: Re: Matrix Stretching Problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 04:36:44 PDT 2025

Total time taken to generate the page: 1.27887 seconds