Rotate Image Angle

This function block allows you to rotate an input image by a specified angle. Users can control the angle of rotation using a slider and choose whether to crop the background after the rotation.

📥 Inputs

Image Any This input accepts any image that you wish to rotate.

📤 Outputs

Image Any This output provides the rotated image based on the specified angle.

Angle This output returns the current angle of rotation being applied.

🕹️ Controls

Crop Background A checkbox that allows you to choose whether to crop the rotated image to remove any background that extends beyond the original image dimensions.

Angle A slider to change the rotation angle from 0 to 360 degrees. The angle can be modified in 30-degree increments.

🎨 Features

Dynamic Rotation The block allows users to rotate images interactively via a slider, enabling real-time adjustments.

Background Cropping The option to crop the background ensures that the output image remains clean and focused on the content.

📝 Usage Instructions

  1. Input Image: Connect the image you want to rotate to the Image Any input.

  2. Set Angle: Use the slider to select the desired rotation angle.

  3. Choose Crop Option: Check the Crop Background box if you want the output image cropped to remove any excess background after rotation.

  4. Evaluate: Run the block to rotate the image according to the specified angle and cropping settings.

📊 Evaluation

Upon execution, this function block processes the input image, rotates it by the specified angle, and outputs the modified image with optional cropping applied based on user settings.

💡 Tips and Tricks

Visualizing Rotation

Try rotating images in increments of 90 degrees for straightforward visual comparisons. This can help you better understand how rotation affects your images.

Using Rotated Images for Alignment

Using this rotation feature helps in aligning images that may have been taken at an angle during capture.

Storing Rotation Settings

Consider integrating this block with Data Memory or Data Write Local to store commonly used rotation angles for quick access in future projects.

🛠️ Troubleshooting

Image Not Rotating

If the image appears unchanged, ensure that the slider for the rotation angle has been adjusted and that you are not using an input image that is None.

Artifact Creation on Rotation

If artifacts appear after rotation, try adjusting the cropping option. Removing excess background typically cleans up the image.

Last updated