Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conformal transformation in Java - disc to rectangle

I have to conformally map an image, from a disc to a rectangle.

Image - disc to rectangle transformation disc to rectangle transformation

The circle in the attached image can be considered as a disc with an inner radius of zero. The red line in the image marks the start, and the blue line marks the end.

I've tried using AffineTransform in Java, but it doesn't allow you to define custom transformations. Can someone help me tackle this problem?

like image 433
Osama Khalid Avatar asked Jun 07 '26 22:06

Osama Khalid


1 Answers

You only need to transform from polar to cartesian coordinates.

Example code is provided on mindprod page.

like image 137
Rekin Avatar answered Jun 10 '26 17:06

Rekin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!