Comment on page
Rotate Image Angle
The
Rotate Image Angle
node in AugeLab Studio is used to rotate an input image by a specified angle.The
Rotate Image Angle
node takes an input image and rotates it by a specified angle. You can use the slider in the node's UI to adjust the rotation angle. The node provides an option to crop the image to remove the background after rotation.- Node Title: Rotate Image Angle
- Node ID: OP_NODE_ROTATE_IMAGE_ANGLE
The
Rotate Image Angle
node has the following input socket:- 1.Input Image: The input image to be rotated.
The
Rotate Image Angle
node has the following output socket:- 1.Output Image: The resulting image after applying the rotation.
The output image will have the same dimensions as the input image.
The
Rotate Image Angle
node provides the following UI controls:- Crop Background: A checkbox to enable or disable background cropping. When enabled, the node will crop the image to remove the background after rotation. When disabled, the original image with rotation will be output.
- Angle: A slider to adjust the rotation angle of the image. You can slide the control to specify the desired rotation angle.
- 1.Drag and drop the
Rotate Image Angle
node from the node library onto the canvas in AugeLab Studio. - 2.Connect the input image to the Input Image input socket of the
Rotate Image Angle
node. - 3.(Optional) Adjust the rotation angle using the Angle slider in the node's UI.
- 4.(Optional) Check the Crop Background checkbox to enable background cropping.
- 5.Run the pipeline.
- 6.The
Rotate Image Angle
node will rotate the input image by the specified angle. - 7.If background cropping is enabled, the node will crop the image to remove the background after rotation.
- 8.The resulting image will be output through the Output Image output socket.
- 9.Use the output image for further analysis or display it in the console.
- The
Rotate Image Angle
node requires an input image. - The rotation angle can be adjusted using the Angle slider in the node's UI. The slider allows you to specify the rotation angle in the range of 0 to 360 degrees.
- By default, the node crops the image to remove the background after rotation. You can enable or disable background cropping using the Crop Background checkbox.
- If background cropping is enabled, the node uses the
largest_rotated_rect()
andcrop_around_center()
functions to crop the image around its center after rotation. - The
Rotate Image Angle
node uses OpenCV'scv2.getRotationMatrix2D()
andcv2.warpAffine()
functions to apply the rotation to the image. - The resulting image will have the same dimensions as the input image, but with the applied rotation.
That concludes the documentation for the
Rotate Image Angle
node in AugeLab Studio. This node allows you to rotate an image by a specified angle and provides an option to crop the image after rotation.