Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Transforming a square image to an image of curved sides
I'd be very thankful for any tip on this!
I have a square picture of the moon (1024x1024 pixels). The 4 corners all have different coordinates (latitude and longitude). I have interpolated the coordinates for the image every 8 bits and I can creat a matrix with that info.
I though of interpolating all the coordinates for all the pixels and then put the pixel in the coordinate matrix but that takes me an hour to compute an image... and I have several hundred thousands to process.
Is there any other method to transform a square image into another image with non linear sides? I'm remembering the features on video that transforms your face into something weird.. something like that but resizing the borders too.
Thank you all!
0 · ·