private static void TestSimdConvert_1000() { HSV[] hsvArray = GenerateHsv(1000); RGB[] rgbArray = HSV.ToRGBSimd(hsvArray); Console.WriteLine("Test Simd 1000 "); for (int i = 0; i < rgbArray.Length; i++) { Console.Write(i + "-"); PrintHsvToRgb(hsvArray[i], rgbArray[i]); } }
private static void TestSimdConvert_4() { HSV colorHsv = new HSV(270, 0.5f, 0.5f); RGB colorRgb = colorHsv.toRGB(); HSV[] hsvArray = new HSV[] { colorHsv, colorHsv, colorHsv, colorHsv }; RGB[] rgbArray = HSV.ToRGBSimd(hsvArray); RGB colorRgb2 = rgbArray[0]; Console.WriteLine("Test Simd 4 "); for (int i = 0; i < rgbArray.Length; i++) { PrintHsvToRgb(hsvArray[i], rgbArray[i]); } }