GCHandle handle = GCHandle.Alloc(YUVbuffer, GCHandleType.Pinned);
if (Image1 == null)
{
Image1 = new Image<Rgb, Byte>(m_Width, m_nHeight);
}
using (Image<Rgb, Byte> yuv420p = new Image<Rgb, byte>(m_Width, (m_nHeight >> 1) * 3, m_Width, handle.AddrOfPinnedObject()))
{
CvInvoke.CvtColor(yuv420p, Image1, Emgu.CV.CvEnum.ColorConversion.Yuv420P2Bgr); //image now contains the same yuv image in bgr color space //