[Digikam-devel] [Bug 197619] Make inverse perspective transform not crop images

Benjamin Traut b.traut at gmx.net
Tue Jun 23 16:39:43 BST 2009


https://bugs.kde.org/show_bug.cgi?id=197619





--- Comment #3 from Benjamin Traut <b traut gmx net>  2009-06-23 17:39:42 ---
(In reply to comment #2)
> What would "crop to valid parts" mean? Otherwise, yes I think that the first
> two options would be useful.

When you apply a perspective transformation to an image, you get black parts
where there weren't any pixels which were transformed.
With "crop to valid parts" I meant, that the algorithm should try to crop to a
rectangle which lies inside the image and does not cover any of those invalid,
black areas.
Since there are many ways of defining such a rectangle, it might be usefull to
have this algorithm make an initial guess (e.g. make a valid rectangle which
resembles the aspect ratio of the image) that could be used as an input for the
crop tool.
Hence "this might not be well definable, since there are many ways of cropping
the resulting image".
To sum it up, I really do not know whether option 3 is an improvement or not.

> Although to be really correct, the image size would even have to be increased
> in some cases, like the rotation tool does.

Yes, the size of the image has to be recalculated.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list