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,148 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,143 Views)
Sorry, I attached the wrong vi. Here is a better example.
Chilly Charly    (aka CC)
Message 3 of 3
(3,140 Views)