Affine  
Top  Previous  Next


Menu:   Processing > Geometry > Affine  
Script:   affine  

Use this command to apply an arbitrary affine transformation to an image. Affine transformation preserves collinearity, which means that all points lying on a straight line initially will still lie on a line after the transformation. The transformation includes scaling, rotation, translation, reflection and skewing of an image.

If you choose this command, the following options will become available:

Input
 
Displays the input image frame number. If you want to transform another image, type or select the corresponding value.  

Output
 
Displays the number of the frame in which the output image will be created. Depending on the Preferences. ImageWarp will set it either to the first available value or to the Input frame number. Type or select another value if you want the output image to be created in a different frame.  
 
Angle
 
Indicate the desired value for the rotation angle in degrees. A positive value corresponds to the counterclockwise direction, negative value to the clockwise direction. If this value is zero, no rotation will be performed.  
 
ScaleX
 
Indicate the desired value for the horizontal scaling factor. If this value is 1., no horizontal scaling will be performed.  
 
ScaleY
 
Indicate the desired value for the vertical scaling factor. If this value is 1., no vertical scaling will be performed.  
 
SkewX
 
Indicate the desired value for the horizontal skew in degrees. A positive value will make the upper part of the image skew to the right, a negative value to the left. If this value is zero, the image will not be skewed horizontally.  
 
SkewY
 
Indicate the desired value for the vertical skew in degrees. A positive value will make the right part of the image skew downward, a negative value upward. If this value is zero, the image will not be skewed vertically.  
 
Flip
 
Lets you choose the flipping (reflection) mode that will be applied to the image.  
 
Click None if you do not want to apply flipping to the image.  
Click Horizontal if you want to have the image reversed horizontally.  
Click Vertical if you want to have the image reversed vertically.  

Preview
 
Select this check box to watch the Preview of the output image.  

Apply
 
Click this button to execute the function.  
 
Record
 
Click this button to record the corresponding operator into the script.  
 
Close
 
Click this button to close the dialog box without performing any action.