Polar Transform
This function block converts a rectangular (Cartesian) image area into a linear polar representation. Use it to unwrap circular or radial features (for example, to examine rings, wheels, or circular seams) so they become easier to analyze with linear tools.
π₯ Inputs
Image Any Input image to be transformed. (socket: input)
Center_X Horizontal coordinate of the transform center. If left empty, the block will use the image center. (socket: input)
Center_Y Vertical coordinate of the transform center. If left empty, the block will use the image center. (socket: input)
Max Radius Maximum radius to use for the transform. If left empty, the block will use a radius that fits the image area. (socket: input)
π€ Outputs
Image Any The resulting linear-polar transformed image. (socket: output)
πΉοΈ Controls
The block has no separate UI widgets; the three numeric inputs act as parameters you can feed from other blocks or manual inputs:
Center_X Horizontal center used for the polar remap. Adjust to move the transform center left/right.
Center_Y Vertical center used for the polar remap. Adjust to move the transform center up/down.
Max Radius Limits how far from the center the transform reaches. Smaller values crop the radial extent; larger values include more of the image.
βοΈ Running mechanism
When the block runs it reads the provided image and numeric inputs, computes a linear-to-polar remap centered at the specified coordinates, and outputs the unwrapped image. If center coordinates or radius are not provided, the block uses sensible defaults so the transform still runs.
π― Features
Unwraps circular or radial structures into a rectangular view for easier inspection.
Accepts optional numeric parameters so you can lock the center and radius precisely.
Works with any image-producing block that outputs image data.
π Usage Instructions
Provide an image to
Image Anyinput.Optionally feed numbers to
Center_XandCenter_Yto define the transform center (or leave empty to use the image center).Optionally feed a number to
Max Radiusto limit radial extent.Use the transformed output from the
Image Anyoutput for further analysis or visualization.
π‘ Tips and Tricks
To focus the transform on a specific area, crop first using
Image ROIorImage ROI Selectthen feed the cropped image into this block.If your image is very large and you want faster processing, use
Image Resizebefore this block to downscale while preserving the area of interest.If the circular feature is rotated, align it first with
Rotate Image AngleorImage AutoRotatorso the unwrapped result is easier to read.After unwrapping, use analysis blocks such as
Histogram On Lineto inspect intensity profiles along the radial or angular direction.To visually inspect results, connect the output to
Show Imagefor an interactive preview during development.For object searches around a ring, feed the transformed image to detection blocks like
Find Objectto simplify locating repeating patterns.
(hint: combine the above blocks to build robust inspection pipelines for circular parts, seals, or ring-shaped textures)
π οΈ Troubleshooting
If the unwrapped image looks offset or warped, check
Center_XandCenter_Yand adjust them to the true center of the circular feature.If parts of the circle are missing, increase
Max Radiusor crop the input differently usingImage ROIso the entire feature is within the transform radius.If output appears stretched or low-detail, try reducing input size with
Image Resizeor improving capture resolution before the transform.If no output appears, confirm the input socket labeled
Image Anyis receiving valid image data (useShow Imageto verify).
Last updated
Was this helpful?