Run time error in copyVectorToArrayPlanar
I am having some run time errors when I tried to use this function copyVectorToArrayPlanar
int loc = 0;
int[] ripplePlane = new int[width*height];
int offset[] = new int[]{0,0};
rippleImage.copyVectorToArrayPlanar(1, 0, offset, ripplePlane, width*height, 0);
for(int j=0;j
Can anyone suggest what is wrong with my code?