Rotate Image Angle
This function block rotates an incoming image by a user-defined angle. You can control the angle via the on-block slider or feed an external numeric value into its input socket. You may also choose the interpolation method and optionally crop resulting background areas.
π₯ Inputs (sockets)
Image Any Provide the source image to be rotated.
(You may optionally provide a numeric angle via the angle socket if available on your canvas to override the on-block slider.)
π€ Outputs (sockets)
Image Any The rotated (and optionally cropped) output image.
Angle The numeric rotation angle applied (degrees).
πΉοΈ Controls
Angle Use the slider to set the desired rotation in degrees. The slider also accepts an external numeric input if you prefer programmatic control.
Interpolation Method Choose how pixels are interpolated during rotation. Options typically include nearest and linear methods; pick the one that balances quality and speed for your case.
Crop Background Toggle this to remove black/empty regions introduced by rotation. When enabled, the block crops the rotated image to the largest central area without background artifacts.
π¨ Features
Live angle control via an adjustable slider or external numeric input.
Selectable interpolation for visual quality vs. speed trade-offs.
Optional automatic cropping to remove background areas created by rotation.
Outputs both the processed image and the applied angle value for downstream use.
π How it runs
Provide an image to the
Image Anyinput socket or feed an image-producing block (for example,Camera USBorLoad Image From Path).Set the angle using the
Angleslider or connect a numeric source to the angle input.Choose the preferred
Interpolation Method.Toggle
Crop Backgroundon if you want the output trimmed to avoid black corners.Run the flow β the block outputs the rotated image and the final angle value.
π‘ Tips and Tricks
For live camera feeds, combine with
Camera USB,Camera IP, orStream Readeras your image source and preview results withShow Image.To focus rotation on a specific area, crop first with
Image ROI Selectand then rotate the cropped region.To avoid visible artifacts on noisy images, try
Denoisingbefore rotation.Save processed images using
Image LoggerorImage Writefor record keeping.
π οΈ Troubleshooting
If you see black corners after rotation, enable
Crop Backgroundto remove them.If rotated images look blocky or contain interpolation artifacts, switch the
Interpolation Methodto a higher-quality option (for example, from nearest to linear).If processing is slow or uses too much memory, reduce input size with
Image Resizerbefore rotating.When providing angle via an external source, ensure the value is a valid numeric degree amount; otherwise the visual result may be unexpected.
Last updated
Was this helpful?