Page 162 - Algorithm Collections for Digital Signal Processing Applications using MATLAB
P. 162
4. Selected Applications 151
4.1 Algorithm
Step 1: Read the Binary image.
Step 2: Find the position vectors of the black pixels of the Binary image.
Step 3: Transform the position vectors using the transformation matrix to
obtain the new sets of positions.
Step 4: Create the blank image completely filled up with white pixels. Fill
the selected pixels of the blank image described by the positions
obtained in step 3 with black to obtain the rotated image.
Figure 4-9. Binary Image Rotation