You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #673 from simmplecoder/gsoc_2020_fixup
* Fix Hough transform and move rasterization
Hough line transform had incorrect
rounding which lead to misleading message
* In depth explanation for Hough line
Added in depth explanation for
Hough line transform in the
associated markdown file
* Change "" includes into <>
* Move diffusion and Hough transform
Move anisotropic diffusion and
Hough transform into extension.
Adjust tests and cmakelists
* Edit Jamfile to new layout
* Add compile statements to Jamfile
* Remove migrated files
* Removed redundant lines
Copy file name to clipboardExpand all lines: example/histogram_equalization.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,52 @@ Histogram equalization capabilities in GIL are demonstrated by the program `hist
7
7
8
8
The program doesn't take any argument on the command line.
9
9
10
+
Hough line transform solves the equation of a line in reverse, but in *polar coordinates*! The implementation will make each pixel vote on all possible lines it could be part of, limited by input Hough parameters.
11
+
12
+
A line in polar coordinates is represented by normal to it in polar coordinates, as shown in example here
It is obvious that the angle for the expected Hough transform is 45 degrees (angle between 5s and bottom 0s). Now we
53
+
need to find the length of 5s. Since 5s, 1s and bottom 0s form a right triangle, we know that bottom 0s are 32 in length
54
+
and is a hypotenuse! Using trivial trigonometry we know that the length we are searching for is 32 * cos(45).
55
+
10
56
`histogram_equalization` expects to find an image called `test_adaptive.png` in the current directory, and produces an image in return, where the equalization have been applied: `histogram_gray_equalized.png`.
0 commit comments