Transforming a square image to an image of curved sides - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Transforming a square image to an image of curved sides

lpa18772lpa18772 Posts: 2Member
Hi all!

I'd be very thankful for any tip on this!

Challenge:

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.

My solution:
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.

Question:

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!

Sign In or Register to comment.