ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

ROTATE ARRAY

HELLO!

How can I rotate and array? I don't want to rotate columns, I want to rotate rows.

0
1
2
3
4

to

4
3
2
1
0

thanks!
0 Kudos
Message 1 of 3
(3,270 Views)
Since you are posting in the vision board, i suppose that you are working with images.
If you have IMAQ vision tools, use the IMAQ Symmetry vi (vision>vision utilities>image manipulation>IMAQ symmetry...).
Otherwise, you'll have to use an autoindexing For loop, and a reverse 1D array, as shown in the attached vi.

CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 3
(3,265 Views)
Sorry, I attached the wrong vi. Here is a better example.
Chilly Charly    (aka CC)
Message 3 of 3
(3,262 Views)