摘要 |
According to embodiments described in the specification, a method, and apparatus for scaling an image to produce a scaled image is described, the image comprising an array of image pixels, and the scaled image comprising an array of scaled pixels. In a first step a map is created between the array of scaled pixels and the array of image pixels. In a second step, an energy parameter of each image pixel in the array of image pixels is determined. In a third step, a fraction of a given image pixel which overlaps a given scaled pixel in the array of scaled pixels is determined for each image pixel, in the array of image pixels. In a final step the energy parameter of the given image pixel is distributed between scaled pixels which overlap the given image pixel, the distributing based on the fraction, such that the energy parameter is conserved. |