Re: Converting data [message #9590] |
Fri, 25 July 1997 00:00 |
thompson
Messages: 584 Registered: August 1991
|
Senior Member |
|
|
Neil Winrow <ncw@dl.ac.uk> writes:
> Can anyone please help me!
> I have written a small program to output a 3D graphical image from a set
> of data. The data represents the values in the positive quadrant (x=0,20
> and y=0,20 etc), but the complete output is symetrical(or so I'm told).
> Is there anyway that I can output the complete data set by creating a
> new array of the values. This would be a great help, and save alot of
> grief.
Try this:
SZ = SIZE(IMAGE)
SYM_IMAGE = FLTARR(2*SZ(1)-1,2*SZ(2)-1)
SYM_IMAGE(SZ(1)-1,SZ(2)-1) = IMAGE
SYM_IMAGE(0,SZ(2)-1) = REVERSE(IMAGE,1)
SYM_IMAGE(SZ(1)-1,0) = REVERSE(IMAGE,2)
SYM_IMAGE(0,0) = REVERSE(REVERSE(IMAGE,1),2)
William Thompson
|
|
|