Hi,

I am searching for a best practice approach to tell if the final output is flipped relative to the input and I need to retrieve this information in a module gui that comes *before* the flip module.

Background: I am working on a module that will be able to do automatic correction of perspective distortions. This involves two independent corrections, in horizontal and vertical direction, respectively. The parameters will be different for both directions, so it's good to have this module before flip, so it can act in the camera coordinate system. This way the two coordinate axes are clearly defined. Flipping the image later in pixelpipe flips the image but does not alter the module's effect.

However, for the user I need to give reasonable names to the module parameters. I could use internal labels like "a" and "b" and let the user figure out what direction this is currently related to. But it would be better to have labels that say "horizontal" and "vertical". If I could retrieve the orientation relative to the input image in gui_update() I could put reasonable labels to the module's sliders.

Anyone with an idea?

Ulrich

___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

Reply via email to