Alsalam Alikom
i want a code to convert from RGB color space to LUV color space
and i will be grateful if this code was in c#
thanks in advance to the experts of image processing
Alsalam Alikom
i want a code to convert from RGB color space to LUV color space
and i will be grateful if this code was in c#
thanks in advance to the experts of image processing
هناك كود للتحويل من RGB الى YUV
لا أدري ان كان يفيدك ام لا :wacko:
public static YUV FromRGB(Color c)
{
byte Y, U, V;
Y = (byte)((( 66 * c.R + 129 * c.G + 25 * c.B + 128) >> 8) + 16);
U = (byte)((( -38 * c.R - 74 * c.G + 112 * c.B + 128) >> 8) + 128);
V = (byte)((( 112 * c.R - 94 * c.G - 18 * c.B + 128) >> 8) + 128);
return new YUV(Y,U,V);
}هذا الموضوع مغلق.