Here you can find the source of toDouble(int[] rgb)
Parameter | Description |
---|---|
rgb | The integer array to convert |
public static double[] toDouble(int[] rgb)
//package com.java2s; /**/*from ww w . ja v a 2 s . com*/ * CamanJ - Java Image Manipulation * Ported from the CamanJS Javascript library * * Copyright 2011, Ryan LeFevre * Licensed under the new BSD License * See LICENSE for more info. * * Project Home: http://github.com/meltingice/CamanJ */ public class Main { /** * Converts an integer array to a double array. * * @param rgb * The integer array to convert * @return The array of doubles */ public static double[] toDouble(int[] rgb) { return new double[] { (double) rgb[0], (double) rgb[1], (double) rgb[2] }; } }