1. A method of obtaining an upscaled version of an image, the method comprising: downscaling the image; detecting slope for one or more edges in the downscaled version of the image; determining interpolated pixels for an upscaled version of the image based on the detected slope; and generating the upscaled version of the image using the interpolated pixels, wherein downscaling comprises downscaling in a first direction while maintaining the scaling in a second direction.