Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deform image to a specific shape (e.g. ellipse)
#4
(03-07-2023, 08:49 AM)jugoslav Wrote: Thx
Maybe it is right but looks to much deformed and looks like loosing some parts.
Just looks like.
I need engineering precision.

Will try, thx.

Can you explain g mic qt ….
My experience 0%

If you cannot, ok thx anyway, you helped.

If engineering precision, what is the equation? If you can express exactly what you want to do, then you can create a displace map (actually, a pair of such). Then given a target bitmap, a source bitmap, and the displace map, the target bitmap is populated by fetching pixels in the source bitmap using X,Y offsets in the displace map. There is also a variant where the displace map are radius/angle offsets.

Then you create the displace maps using gradient, with which you can approximate about any function (which is going to be the inverse of the source->target function). This is something I am doing here.

If you need to go beyond this, you'll need to write you own C plugin, which is beyond my current competences.
Reply


Messages In This Thread
RE: Deform image to a specific shape (e.g. ellipse) - by Ofnuts - 03-07-2023, 09:32 AM

Forum Jump: