converting rgb to yuv etc. using C# with Microsoft Visual Studio
<p>I have to make a question for school that have to do with C# in Microsoft Visual Studio.</p>

<p>This is what I suppose to do with a image:</p>

<p>•Implement RGB to YUV conversion</p>

<p>• Implement YUV to RGB conversion.</p>

<p>• Convert a RGB image to YUV and then the converted image in YUV to
RGB and display the initial image and the result (they should look like
the same). Display both images in a window.</p>

<p>• Implement the Black and White filter both in RGB and YUV. Display the
original image and the black and white image in a window.</p>

<p>I am so far that I can display two images side by side, but I just can't convert them or implement it.</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing;
using ImageUtilities;


namespace Template
{
    public class Program
    {
        static void Main(string[] args)
        {
            Color[,] image1 = ImageViewer.LoadImage(@"Content\terminator_marine.jpg");
            Color[,] image2 = ImageViewer.LoadImage(@"Content\forest.jpg");
            ImageViewer.DrawImagePair(image1, image2);
        }
    }
}
</code></pre>