Win8 Metro(C#)数字图像处理--4图像颜色空间描述
原文: Win8 Metro(C#)数字图像处理--4图像颜色空间描述 图像颜色空间是图像颜色集合的数学表示,本小节将针对几种常见颜色空间做个简单介绍。 /// <summary> /// Get rgba value from source image. /// </summary> /// <param name="src">The source image.</param> /// <returns></returns> public static byte[] RGBValue(WriteableBitmap src) { if (src != null) { int w = src.PixelWidth; int h = src.PixelHeight; byte[] rgbaValue = new byte[w * h * 3]; WriteableBitmap srcImage = new WriteableBitmap(w, h); byte[] temp = src.PixelBuffer....