After much tweaking and deliberation, i managed to fix it. Both of you were right! The indices were indeed coordinates. The value held at each index location represented the colour of the pixel....
Type: Posts; User: shadysback
After much tweaking and deliberation, i managed to fix it. Both of you were right! The indices were indeed coordinates. The value held at each index location represented the colour of the pixel....
Hi,
That bit i understand. What i dont understand is getting seperate x and y values since i need them in JOGL to plot this pixel.
For instance
data[1][0][5]
data[1][1][5]
data[1][2][5]
...
I am using it to draw an represent a 3-D image. so i will plot each pixel manually using the data in the array.
Another use of the the scalar data contained in each position will be to use it to...
The data is loaded into an int[][][] array by an external .jar library whose source i do not have so i cannot do any other way but this.
To correct you each position only holds one scalar value....
Hi Chris, I need to hold data about a 3D image. So needs to hold x,y,z positions about each pixel.
I am working with datasets that contain x,y,z coordinates for each position (size = 40,40,40 for this instance).
My understanding is that java treats arrays differently to other languages like c...