Linear polar unwrap implemented with NumCPP for Machine/Computer vision. A linear polar unwrap is a 2D geometric transformation that remaps an image from polar coordinate space to cartesian space.
See Python prototype implementation: Link
OpenCV Reference: warpPolar()
This implementation of the polar unwrap use annulus region (Ring/Donut shape region).
- Center of annulus region - x,y coordinate
- inner_radius - The distance in pixels from the center to the inner part of the annulus.
- outer_radius - The distance in pixels from the center to the outer part of the annulus.
- start_angle - The starting angle of the unwrap defined in radians.
- end_angle - The ending angle of the unrap defined in radians.
In this way, the transformation only selects the necessary pixel region (an annulus vs a circle) for the function, allowing for faster execution.
Here is an example input image of a 806-2RS ball bearing.
The example output image of the unwrapped 806-2RS ball bearing.