|
Affine transforms are the set of linear geometrical transforms on a two-dimensional image that encompass translation, shear, rotation and scaling. Apart from scaling, all of those operations might be applied utilizing rasterop! Translation is obvious: you choose whole picture because the supply block, and place it, appropriately translated, within the vacation spot. Shear is applied by translating blocks of image by completely different amounts. For instance, you may imagine a horizontal "clockwise" shear about the middle of the image the place horizontal full width blocks are shoved to the best above the middle and to the left under the center. Blocks near the top and bottom are pushed farther than blocks close to the middle; the space a block moves horizontally increases linearly with the vertical distance of the block from the center of the picture. Rotation is achieved by three successive shears, alternating in horizontal and vertical instructions; the details are given within the source code. For small angles, a two-shear approximation to a rotation can be utilized.
my page :: Wood Ranger official |
|