Here you can find the source of normalizeVoxelDimensions(final double[] voxelDimensions)
public static double[] normalizeVoxelDimensions(final double[] voxelDimensions)
//package com.java2s; //License from project: Open Source License public class Main { public static double[] normalizeVoxelDimensions(final double[] voxelDimensions) { final double[] normalizedVoxelDimensions = new double[voxelDimensions.length]; double voxelDimensionsMinValue = Double.MAX_VALUE; for (int d = 0; d < normalizedVoxelDimensions.length; d++) voxelDimensionsMinValue = Math.min(voxelDimensions[d], voxelDimensionsMinValue); for (int d = 0; d < normalizedVoxelDimensions.length; d++) normalizedVoxelDimensions[d] = voxelDimensions[d] / voxelDimensionsMinValue; return normalizedVoxelDimensions; }/*from w w w . j a v a2s . c o m*/ }