public void runConversion() throws IOException {
        for (int row = 0; row < width; row++) {
            for (int col = 0; col < height; col++) {
                convertYCBCRtoRGB(yCbCrArray[row][col][0],
                        yCbCrArray[row][col][1],
                        yCbCrArray[row][col][2]);
                rgbArray[row][col] = getPixelValue(R, G, B);
            }
        }
        try {
            writeImage();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }