Here you can find the source of divide(float[][][][] img, float val)
public static final void divide(float[][][][] img, float val)
//package com.java2s; //License from project: Apache License public class Main { public static final void divide(float[][][][] img, float val) { for (int i = 0; i < img.length; i++) for (int j = 0; j < img[0].length; j++) for (int k = 0; k < img[0][0].length; k++) for (int l = 0; l < img[0][0][0].length; l++) { img[i][j][k][l] /= val; }// w w w. ja va 2 s .c om } public static final void divide(float[][] img, float val) { for (int i = 0; i < img.length; i++) for (int j = 0; j < img[0].length; j++) { img[i][j] /= val; } } public static final void divide(float[][][][] img, double val) { for (int i = 0; i < img.length; i++) for (int j = 0; j < img[0].length; j++) for (int k = 0; k < img[0][0].length; k++) for (int l = 0; l < img[0][0][0].length; l++) { img[i][j][k][l] /= val; } } public static final void divide(float[][][] img, float val) { for (int i = 0; i < img.length; i++) for (int j = 0; j < img[0].length; j++) for (int k = 0; k < img[0][0].length; k++) { img[i][j][k] /= val; } } public static final void divide(float[][][] img, double val) { for (int i = 0; i < img.length; i++) for (int j = 0; j < img[0].length; j++) for (int k = 0; k < img[0][0].length; k++) { img[i][j][k] /= val; } } public static final void divide(double[][] img, double val) { for (int i = 0; i < img.length; i++) for (int j = 0; j < img[0].length; j++) { img[i][j] /= val; } } public static final void divide(double[] img, double val) { for (int i = 0; i < img.length; i++) { img[i] /= val; } } public static final void divide(float[] img, float val) { for (int i = 0; i < img.length; i++) { img[i] /= val; } } public static final void divide(int[] img, int val) { for (int i = 0; i < img.length; i++) { img[i] /= val; } } }