//This region contains effecs, which do not need python, so no initialization needed and just static functions. #region Direct Effects (without Python) /// <summary> /// Getting a quantum circuit representation of a color channel directly without using python. /// Is faster than python versions but does not support logarithmic encoding yet and may still contain some errors. /// </summary> /// <param name="inputTexture">The image which should be converted to a circuit</param> /// <param name="colorChannel">Which color channel is converted</param> /// <param name="useLog">If logarithmic encoding is chosen DOES NOTHING (at the moment)</param> /// <returns></returns> public static QuantumCircuit GetCircuitDirect(Texture2D inputTexture, ColorChannel colorChannel = ColorChannel.R, bool useLog = false) { //TODO logarithmic encoding //TODO no need to go over double array unneeded copying double[,] imageData = QuantumImageHelper.GetHeightArrayDouble(inputTexture, colorChannel); return(GetCircuitDirect(imageData, useLog)); }