private YCbCrPixel[,] GetYCbCrPixelsFromImage(Bitmap image) { var pixels = new YCbCrPixel[256, 256]; for (int i = 0; i < 256; i++) { for (int j = 0; j < 256; j++) { pixels[i, j] = pixelMapper.GetYCbCrPixelFromRgb(image.GetPixel(i, j)); } } return(pixels); }