On Fri, Jan 29, 2016 at 12:56 PM, Ulrich Pegelow <[email protected]> wrote: > Hi, 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. I think, $ git revert 11f621d613e3310ee3219fdf8610859e0abc990d and then use piece->pipe->iflipped flag. (e.g. store it in gui params in process()) > 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 Roman. > > ___________________________________________________________________________ > darktable developer mailing list > to unsubscribe send a mail to [email protected] > ___________________________________________________________________________ darktable developer mailing list to unsubscribe send a mail to [email protected]
