P
Philipp
Hello
Is there a nicer (or faster) way to cast a double[][] to a float[][]
than doing loops?
Thanks for your answers.
Phil
I now have this (doublePic is of type double[][])
float[][] floatPic = new float[height][width];
for(int j=0; j<height; j++){
for(int i=0; i< width; i++){
floatPic[j] = (float)doublePic[j];
}
}
Is there a nicer (or faster) way to cast a double[][] to a float[][]
than doing loops?
Thanks for your answers.
Phil
I now have this (doublePic is of type double[][])
float[][] floatPic = new float[height][width];
for(int j=0; j<height; j++){
for(int i=0; i< width; i++){
floatPic[j] = (float)doublePic[j];
}
}