LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I rotate an intensity graph?

I would like to rotate an intensity graph, not the data, the entire graph.

I have many arrays of various aspect ratios (many of them are 100 x 500) and I would like to display them at various angles and overlay them.

My original idea of rotating the data forces me to extrapolate the data to be a square array (500 x 500 for example), then I have to deal with a larger array to hold this data (a 500 x 500 array at 45 deg. with no "holes" must be subsampled by root 2 making it an array of 353, inscribed in a 500 x 500 square). Anyway, I could go on and on, but it turns into a big mess and takes a massive amount of computation expense.

I would like to be able to keep the original resolution and simply display the entire graph at some
angle (determined programatically).

Any thoughts or suggestions would be very helpful. Thanks,
Casey
0 Kudos
Message 1 of 4
(3,138 Views)
Casey,

The only things you can do are to rotate the data (transpose array), and...use picture controls.

I have little experience with picture controls, so I can't advise you on how to do it, other than to say I know it can be done. Unfortunately, it involves a lot of work.

I would also suggest contacting NI to get a second opinion.

-Mike
Message 2 of 4
(3,138 Views)
I believe the solution could be in using of MATLAB script and get a picture
rotated from MATLAB figure manipulation functions.

----- Original Message -----
From: "multiprobe"
Newsgroups: comp.lang.labview
Sent: Friday, September 13, 2002 3:27 AM
Subject: Can I rotate an intensity graph?


> I would like to rotate an intensity graph, not the data, the entire
> graph.
>
> I have many arrays of various aspect ratios (many of them are 100 x
> 500) and I would like to display them at various angles and overlay
> them.
>
> My original idea of rotating the data forces me to extrapolate the
> data to be a square array (500 x 500 for example), then I have to deal
> with a larger array to hold this data (a 500 x 500 array at 45 deg.
> with no "holes" must
be subsampled by root 2 making it an array of
> 353, inscribed in a 500 x 500 square). Anyway, I could go on and on,
> but it turns into a big mess and takes a massive amount of computation
> expense.
>
> I would like to be able to keep the original resolution and simply
> display the entire graph at some angle (determined programatically).
>
> Any thoughts or suggestions would be very helpful. Thanks,
> Casey
0 Kudos
Message 3 of 4
(3,138 Views)
Hi,

There's a set of vi's including an image spin example.

This rotates the 2D array of the picture. It uses Rotate 24bit.vi, Rotate
8bit.vi, etc.

I think it's origine is the OpenG site.

Regards,

Wiebe.



"multiprobe" wrote in message
news:506500000008000000765B0000-1031838699000@exchange.ni.com...
> I would like to rotate an intensity graph, not the data, the entire
> graph.
>
> I have many arrays of various aspect ratios (many of them are 100 x
> 500) and I would like to display them at various angles and overlay
> them.
>
> My original idea of rotating the data forces me to extrapolate the
> data to be a square array (500 x 500 for example), then I have to deal
> with a larger array to hold this data (a 500 x 500 array at 45 deg.
> wi
th no "holes" must be subsampled by root 2 making it an array of
> 353, inscribed in a 500 x 500 square). Anyway, I could go on and on,
> but it turns into a big mess and takes a massive amount of computation
> expense.
>
> I would like to be able to keep the original resolution and simply
> display the entire graph at some angle (determined programatically).
>
> Any thoughts or suggestions would be very helpful. Thanks,
> Casey
0 Kudos
Message 4 of 4
(3,138 Views)