1. A method comprising: determining, using a prediction function, a quality of at least one missing region relative to a quality threshold prior to filling in the at least one missing region with known pixels from one or more other regions of an image, the at least one missing region comprising unknown pixels; subsequently computing a crop of the image based upon the determined quality of the at least one missing region by excluding one or more of the unknown pixels in the at least one missing region that are below the quality threshold and including one or more of the unknown pixels in the at least one missing region that are above the quality threshold; and upon computing the crop, filling in the one or more of the unknown pixels in the at least one missing region that are above the quality threshold within the crop with one or more of the known pixels of the image.