I want to take a circular region of interest from a rectangular image and project it onto a rectangle. This is illustrated in the following image:
I want to accomplish this, preferably using MATLAB, but even the general concept of how it can be done using any other language would suffice.
Thank you!