Constant-Work-Space Image Scan with a Given Angle
暂无分享,去创建一个
In this paper we present a linear-time constant-memory algorithm for scanning a rotated grid image. The algorithm transforms the grid data into a stream data where the pixels are output in the increasing order of the distances to the line y=ax giving the rotated axis. We first deal with the special case where the slope a of the rotated axis is a quotient number of two small integers, then extend the method to the general case where the slope is an arbitrary real number.
[1] Tetsuo Asano,et al. In-Place Algorithm for Image Rotation , 2007, ISAAC.
[2] Bolyai János Matematikai Társulat,et al. Theory of algorithms , 1985 .