09-30-2008 10:52 AM
the problem is, that i don't know how to create a 2D array.
so i have only a numeric value and no x, or y coordinates. How i can put this value in the intensity graph?
09-30-2008 10:59 AM
We need a little bit more information to help you with that. In what form do you have the data? Somehow you managed to create a 3D plot so where's the problem with the 2D plot?
Post more information or even better files and code.
09-30-2008 11:18 AM
I read a file with pixel intensitaet values for 5 different frames. the file ist to be readout like this => ....pixel5frame2, pixel4frame2, pixel3frame2, pixel2frame2,pixel1frame2, pixel5frame1,....pixel2frame1,pixel1frame1(here is start) so i pic up and arrange the different pixel for the different frames, so that in one array is pixel1 and pixel2 ...for each frame (but don't thik about this, this is working) and now i want to bring this z array (called ausgabe5) into an intensity plot with 640 pixel per row and 320 columes per frame.
Here is the vi, i hope you can help me
09-30-2008 11:41 AM
I don't really get it, sorry. You have to write the data into a 2D array, something like I did in the attached file. But I don't know if this is correct, your read routine looks a bit strange.
Can you post a sample data file and do you know how the graph should look in the end?
09-30-2008 12:58 PM
09-30-2008 01:58 PM
sorry zour plot is comletly right, zou are perfect 🙂
THX THX THX
but is it possible to seperate mor the pixel in this plot, so that i will see better the pixel? or to mark the pixel with the highest value in this frame?
09-30-2008 03:14 PM
I'm glad it works!
You can't separate the pixels, but you can increase the intensity plot size or zoom in.
Highlighting data is also not possible, but you can adjust the color scale to have better contrast for your specific data.
10-04-2008 04:03 AM
Hi
this plot is very fast and runs perfect, but i want to change the matrix. How can i put the first pixel in the left corner to the upper right courner as last pixel, so that the hole matrix is turned arround? so that i start to fill this matrix with the last pixel not with the first. you know what i meen?
THX
10-04-2008 04:23 AM
The indices to the replace array subset function define the order of the elements.
If you want to flip it along the vertical axis, instead of wiring the loop counter 'i' to the column index wire (Num Columns - 1 - i) to the index. To flip it horizontally do the corresponding operation on the row index. Just give it a try and invert rows or columns to get the desired result.
If I understand you correctly you'll have to do this for rows and columns.
If you also need to transpose your array you can use the transpose 2D array after building it or switch row and column indices while populating it.