/// <summary> /// Remapping function. /// </summary> /// <param name="sigma">Sigma</param> /// <param name="factor">Factor</param> /// <param name="i">Increment</param> /// <param name="length">Length of table</param> /// <returns>Table</returns> internal static float[] Rem(float sigma, float factor, float i, int length) { float[] table = new float[length]; for (int x = 0; x < length; x++) { table[x] = LocalLaplacianFilter.Rem(x / (float)length, sigma, factor, i); } return(table); }
/// <summary> /// Reconstruct function. /// </summary> /// <param name="i">Increment</param> /// <param name="step">Step</param> /// <param name="length">Length of table</param> /// <returns>Table</returns> internal static float[] Rec(float i, float step, int length) { float[] table = new float[length]; for (int x = 0; x < length; x++) { table[x] = LocalLaplacianFilter.Rec(x / (float)length, i, step); } return(table); }