darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.54k stars 1.13k forks source link

Composite - auto match the images #17035

Open rekcodocker opened 3 months ago

rekcodocker commented 3 months ago

Wow, Composite is amazing!

I see it used often when images are very similar. Therefore it would be handy to have some automatic match to find the right scale and rotation.
Similar to how finding straight edges works in Rotate&Perspective: It does not have to be flawless or work in 100% of situations. But if it automates the manual matching for 80% of the pictures, that is a huge win.

It would work like this:
It would assume that the images are fairly similar or the user would not be trying to match them. Use a small square in the bottom left and match it from one picture to the other; and do the same for a square in the top right. Rotate, scale and move until both have the best match. Set the settings in the module and return control to the user.

If a match can't be found, tough luck. The user can still do it manually. The two squares can be fixed locations - if it works you are lucky. In future versions perhaps you can select a pattern or select one or more locations to match.

ralfbrown commented 3 months ago

Doing image matching involving translation, rotation, and scaling is non-trivial....

Ni-Ti commented 3 months ago

An alternative solution would be to have a mode where you could move and orient the photo with the mouse, like GIMP with its layers. This would simplify the current interface and usage I think.

github-actions[bot] commented 1 month ago

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.