[Bug 224612] New: Auto-straightning: identify straight lines and rotate the photo according to them

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] New: Auto-straightning: identify straight lines and rotate the photo according to them

Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612

           Summary: Auto-straightning: identify straight lines and rotate
                    the photo according to them
           Product: digikam
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: unspecified
            Status: NEW
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:            (using Devel)
Installed from:    Compiled sources

If there is a way for Digikam to identify straight lines in photos, then it
would be great if the user could select a line and Digikam would straighten the
image accordingly.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612


Dotan Cohen <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Auto-straightning: identify |Auto-straightening:
                   |straight lines and rotate   |identify straight lines and
                   |the photo according to them |rotate the photo according
                   |                            |to them




--- Comment #1 from Dotan Cohen <kde-51 dotancohen com>  2010-01-28 11:59:34 ---
The now-defunct BrilliantPhoto had this feature, so technically it is possible.
The user would hover over the image and the straight lines would be
highlighted. Selecting one would instruct the application to straighten as per
that line.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

Gilles Caulier-4
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #2 from Gilles Caulier <caulier gilles gmail com>  2010-01-28 12:05:21 ---
Do you have tried current version of FreeRotation tool ? It have this option.

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

Gilles Caulier-4
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612





--- Comment #3 from Gilles Caulier <caulier gilles gmail com>  2010-01-28 12:10:46 ---
http://farm3.static.flickr.com/2775/4311396834_ffc7db09f8_o.png

http://farm3.static.flickr.com/2743/4310658607_84e838b5c8_o.png

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

Bugzilla from kde-51@dotancohen.com
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612





--- Comment #4 from Dotan Cohen <kde-51 dotancohen com>  2010-01-28 13:00:31 ---
I have Digikam 1.0.0 installed, and it looks just as your screenshots do (I
love that picture, by the way). The user can set two points, which is great,
but it does not automatically identify the straight edge.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

Gilles Caulier-4
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |Free Rotation
            Version|unspecified                 |1.2.0
            Product|digikam                     |digikamimageplugins




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

Gilles Caulier-4
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612





--- Comment #5 from Gilles Caulier <caulier gilles gmail com>  2010-01-28 13:17:24 ---
Do you know a code somewhere to find automatically point 1/ and 2/ in the image
?

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

Johannes Wienke-3
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612





--- Comment #6 from Johannes Wienke <languitar semipol de>  2010-01-28 13:30:02 ---
You could use the http://en.wikipedia.org/wiki/Hough_transform to find straight
lines in an image.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

Johannes Wienke-3
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612





--- Comment #7 from Johannes Wienke <languitar semipol de>  2010-01-28 17:46:54 ---
http://www.inf.ufrgs.br/~laffernandes/kht.html seems to be a free
implementation.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

Gilles Caulier-4
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612





--- Comment #8 from Gilles Caulier <caulier gilles gmail com>  2010-01-29 12:44:22 ---
Yes, KHT is published as GPL.

core algorithm is pure C++. No problem to use it.

For the rest, we nned to take a look in test application code.

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

Johannes Wienke-3
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612





--- Comment #9 from Johannes Wienke <languitar semipol de>  2010-01-29 12:57:05 ---
I don't think it will do all the work we need. I would expect that the code
returns all detected lines and these lines need to be interpreted by us, e.g.
by averaging over all lines with 10 angle difference from exactly horizontal or
some other heuristic.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

"Jens Müller"
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612


Jens Mueller <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #10 from Jens Mueller <tschenser gmx de>  2010-01-29 18:01:51 ---
Just for notice: CImg image library does also hough transform and is already
included in digikam.

And just my wish:
Please consider following behaviour:
1.) get lines out of hough transform with given treshold,
2.) display them semitransparent ontop of image
3.) as the user moves the mouse over the image area, hover the next line in
distance and make it apply with a simple left click

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

Arnd Baecker
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612





--- Comment #11 from Arnd Baecker <arnd baecker web de>  2010-01-29 18:48:39 ---
I fully agree with Jens' comment.
Some ages ago, I played around with the openCV code given here:
http://opencv.willowgarage.com/documentation/feature_detection.html
under "HoughLines2". The routine even has parameters to
specify the angular resolution of found lines (depending on the algorithm).
So this might already address Johannes' remark.
If the algorithm works well enough, code-wise most of the work
would be on the GUI side...

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

Bugzilla from kde-51@dotancohen.com
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612





--- Comment #12 from Dotan Cohen <kde-51 dotancohen com>  2010-01-31 07:16:37 ---
I agree with Jens in Comment #10.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

Gilles Caulier-4
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612





--- Comment #13 from Gilles Caulier <caulier gilles gmail com>  2011-12-17 19:18:54 ---
Dotan,

This file still valid using digiKam 2.x serie ?

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

Dotan Cohen-3
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612


Dotan Cohen <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #14 from Dotan Cohen <kde-2011 08 dotancohen com>  2011-12-18 07:03:10 ---
Yes, Gilles. Currently the only way to straighten an image is to open it in the
editor and to set two points to define the angle. The makes the operation a
chore and means that I don't straighten any images! Having the main Digikam
window automatically highlight potential lines for straightening would be
terrific. I would suggest a toggle that enables / disables the line overlays
while browsing images so that users could add image straightening to their
workflows.

Thanks.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

bugzilla_noreply
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Product|digikamimageplugins         |digikam
          Component|Free Rotation               |Tool-FreeRotation

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 224612] Auto-straightening: identify straight lines and rotate the photo according to them

bugzilla_noreply
In reply to this post by Bugzilla from kde-51@dotancohen.com
https://bugs.kde.org/show_bug.cgi?id=224612

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|unspecified                 |Linux

--
You are receiving this mail because:
You are the assignee for the bug.