-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docs for histogram #503
Conversation
48e083c
to
b3a453d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks very good!
Quick review of the docs structure:
-
No need for
core/
subdirectory, just move the files one level up, and remove the directory. The name core is an informal one, that, there is no physical structure named core. -
The `extension/' directory does make sense, please keep it.
-
Please, remove
_a_
infix and_it
suffix from file names. Simple names like create.rst, fill.rst, subhistogram.rst are clear enough.
- Made changes suggested in first review - Add docs for relevant files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: The file name cumulativehistogram.rst
should read cumulative.rst
. It already lives in histogram/
directory.
be002b4
to
909dd83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codejaeger Well done! It's great to see GSoC features covered with documentation :-) I'm happy to approve this PR. No objections from you @lpranam ?
I have offered a few comments, but those are not show-stoppers.
Technical writing is not a trivial activity. We can always improve and refine documentation in future.
I'd suggest we merge it after we merge PR #499.
Next time you may prefer to stick docs in the same PR as implementation and tests.
**Grayscale Image** | ||
|
||
.. figure:: barbara.png | ||
:width: 600px | ||
:align: center | ||
:height: 300px | ||
:alt: Could not load image. | ||
:figclass: align-center | ||
|
||
**RGB** | ||
|
||
.. figure:: church.png | ||
:width: 600px | ||
:align: center | ||
:height: 250px | ||
:alt: Could not load image. | ||
:figclass: align-center |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not like the idea of storing 7MB files in GIL's repo.
Unfortunately, I can not offer an ideal alternative yet.
I'd suggest a temporary solution:
- Remove the images from this PR
- Paste the images as comments to this PR
- Replace filename with URLs from GitHub
.. figure:: https://user-images.githubusercontent.com/12345/12811123-3877a980-8375-11ea-9960-1b88a3f9f87b.png
...
The thing is, once we start adding big binary files to Git repo, then even if we find an optimal solution for hosting images for docs, we will not be able to get rid of them easily, from Git history.
I have (slowly) started collecting externally hosted test images in dedicated repo https://github.com/boost-gil/test-images, so I perhaps we could have examples/
folder there and link from docs to there.
What do you think @lpranam ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion, in docs we don't have to use the full-size images. Docs just need to demonstrate what our algorithms can do and do not need to show the exact accurate images, we can use highly compressed and small resolution images in docs. Otherwise what @mloskot suggested the great. I have no other objections regarding this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codejaeger Well done! It's great to see GSoC features covered with documentation :-) I'm happy to approve this PR.
Thanks a lot @mloskot : )
I'd suggest we merge it after we merge PR #499.
Next time you may prefer to stick docs in the same PR as implementation and tests.
Yes sure. Also this PR contains docs for the algorithm histogram equalization. I haven't pushed it yet since the histogram class is a dependency for it. Should I remove the docs for the algorithm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have compressed the images, they now occupy about 34 KB and 24 KB. I can also do what @mloskot suggested if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
though it is compressed for doc would be great to add real one on that repo so we can have those images for later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codejaeger If you want to try the idea outlined earlier, you should have now the write access to https://github.com/boost-gil/test-images Feel free to create doc/
directory (and any necessary subfolders) and put your images in there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codejaeger Could you add full size/resolution images to the test-images
repo as @lpranam suggested?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codejaeger Ping ☝️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep doing it. Thanks for the reminder, sorry I had totally forgotten about it.
@codejaeger I've just |
Codecov Report
@@ Coverage Diff @@
## develop #503 +/- ##
===========================================
+ Coverage 77.81% 78.59% +0.78%
===========================================
Files 110 117 +7
Lines 4367 5003 +636
===========================================
+ Hits 3398 3932 +534
- Misses 969 1071 +102 |
* Add docs for histogram * Add docs and make changes: - Made changes suggested in first review - Add docs for relevant files * Rename docs file and correct typos * Change doc for cumulative histogram * Add docs for histogram equalization * Make changes suggested in review * Add docs * Remove docs for algorithms * Move images to test_images Co-authored-by: Mateusz Łoskot <[email protected]>
* Add docs for histogram * Add docs and make changes: - Made changes suggested in first review - Add docs for relevant files * Rename docs file and correct typos * Change doc for cumulative histogram * Add docs for histogram equalization * Make changes suggested in review * Add docs * Remove docs for algorithms * Move images to test_images Co-authored-by: Mateusz Łoskot <[email protected]>
* Add docs for histogram * Add docs and make changes: - Made changes suggested in first review - Add docs for relevant files * Rename docs file and correct typos * Change doc for cumulative histogram * Add docs for histogram equalization * Make changes suggested in review * Add docs * Remove docs for algorithms * Move images to test_images Co-authored-by: Mateusz Łoskot <[email protected]>
Description
Add documentation for the histogram functionality provided in PR #499 .
References
Tasklist