I have noticed that there are functions like copyVectorToArray to copy line by line the contents of the JitterMatrix to an array. There are times you need to get all the contents of JitterMatrix to array and process them and put them back.
Is there a function copy contents of JitterMatrix to an array at once?
>>Is there a function copy contents of JitterMatrix to an array at once?
yes, the method CopyMatrixToArray as i sayed to you in the other topic.
In my JitterMatrix I hold an image. When you copy the array using CopyMatrixToArray what is the format it goes to the array
Alpha, r, g , b , …
each plane separately like alpha plane first, then red plane etc
it’s Alpha, r, g , b , …
I used following code to modify the array content. What I expected was a dimmed image but the output was totally different. Am I processing the array properly?
int rippleAllPlanes = new int[width*height*planecount]; back_draw.copyMatrixToArray(rippleAllPlanes); for (int y=0;y
i think you’re wrong on this line:
for (int k=1;k
i should be:
for (int k=0;k
(ex: if it’s 4 planes, it’s 0 to 3 … )
I didn’t want to change the alpha value that is why I started from 1. It is the first element in right?
Do you see anything else wrong?
It is the first element in right? yes
Do you see anything else wrong? no,sorry..
Do you have a sample program processing an array like this?
only my exemple patch at the begining of the other topic :
Wijesijp’s code is working fine here.