05-29-2013 04:44 AM
I am working on 2D array of size 1024x1280 (zero indexing). now i need to change both row and column indexing
row indexing change from (0,1,2,3....1023) to (0.5, 1.0, 1.5, 2.0, 2.5, ....., 512)
column indexing change from (0,1,2,3.....1279) to (0.5, 1.0, 1.5, 2.0, 2.5,........, 640)
I tried with property node IndexVals, but not success.. please help
05-29-2013 04:53 AM
Have you tried using "reshape array"?
05-29-2013 04:59 AM
1024x1280 means your array has 1024 ROWS and 1280 columns. The rows start from "0th" element to "1023th" element. I don't get what is "0.5th" element or "2.5th" element?
Care to elaborate what you actually are doing?
05-29-2013 05:03 AM
Index to an array is an integer, it can't be float.
05-29-2013 05:15 AM
Ya 1024 rows and 1280 columns, index starts at 0 and ends at 1023, now i want to change this index starting from 0.5 to 512
only change of index
index element Index element
0 5 0.5 5
1 10 1 10
2 8 1.5 8
. . . .
. . . .
1023 6 512 6
05-29-2013 05:23 AM
Index of an array can't be in float, it's an integer. However, from your problem I see that you want to make the size of your array to half i.e an array of dimensions 1024x1280 INTO 512x640, right?
05-29-2013 06:27 AM
Try this VI...!!
so by keeping this (attached) VI in between, you may consider that the index has changed from 1..1023 to 0.5..511.5.