Andersen Chen Posted May 23, 2019 Report Share Posted May 23, 2019 hello everybody, i have a VI, input a video and get its each frame grayscale, but now it is 3D array(10x240x132), how can i get 10 page 2D array total (240x132), and per second display one array ,total is ten seconds Many Thanks, 777.avi array.vi Quote Link to comment
sirknoxalot Posted May 23, 2019 Report Share Posted May 23, 2019 From my understanding, your 3D array (10x240x132) is in face a 10 page 2D array (240x132). The dimensions of the 3D array are row, column, and page. So each page (3rd dimension of your array) includes one second of data in a 2D array (240x132). Is there a specific way you are wanting to display the frame grayscale data? Do you want to see 10 separate 2D array's, each containing one second worth of data (240x132)? Quote Link to comment
Andersen Chen Posted May 24, 2019 Author Report Share Posted May 24, 2019 (edited) yes that's what i meant thank you Edited May 24, 2019 by Andersen Chen Quote Link to comment
sirknoxalot Posted May 24, 2019 Report Share Posted May 24, 2019 You can use the Index Array primitive function and use the 'index (page)' input to specify which page you want to extract from the 3D array. The example below is by no means efficient because it is not scalable, but it should help illustrate what to do: Extract from 3D Array.vi 1 Quote Link to comment
Andersen Chen Posted May 27, 2019 Author Report Share Posted May 27, 2019 sirknoxalot thank you Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.