-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[MRG] Update documentation to new data.camera() #5018
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
Conversation
Hello @kalpanab-psg! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2020-10-13 16:39:42 UTC |
@@ -54,25 +54,26 @@ | |||
cameraman = data.camera() | |||
|
|||
# Change the cameraman's coat from dark to light (255). The seed point is | |||
# chosen as (200, 100), | |||
light_coat = flood_fill(cameraman, (200, 100), 255, tolerance=10) | |||
# chosen as (150,170, 100), |
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.
# chosen as (150,170, 100), | |
# chosen as (170, 150), |
ax[2].imshow(regions, cmap='Accent') | ||
ax[2].imshow(regions, cmap='jet') |
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 think this change is probably not necessary?
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 think someone mentioned a color change to lessen the pink effect here ->#4993 (comment).
The cmap with jet parameter looks better than Accent.
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.
Ah, fair enough. I just have a severe allergy to jet. LOL I think even if not accent we should use one of the qualitative colormaps found in this page
@kalpanab-psg Thanks for these! I'm not sure why the circleci builds failed. I also don't understand why I need to log in to view the Circle-CI build log — @scikit-image/core any ideas? But, since we can't see the output online, would you mind posting screenshots of the figure outputs of your changes here, to make review easier? |
fig, ax = plt.subplots(ncols=2, figsize=(10, 5)) | ||
|
||
ax[0].imshow(cameraman, cmap=plt.cm.gray) | ||
ax[0].set_title('Original') | ||
ax[0].axis('off') | ||
|
||
ax[1].imshow(light_coat, cmap=plt.cm.gray) | ||
ax[1].plot(150, 170, 'ro') # seed point | ||
ax[1].plot(150, 155, 'ro') # seed point |
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.
This should be (155, 150) because plotting axis order is reversed compared to NumPy axis order in matplotlib.
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.
But when we see the output image the (x,y) values are showed as (150,155) in red dot.
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.
Will check and revert regarding other cmap option. Thanks for the suggestions
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.
Thanks so much for the screenshots! I've suggested a minor code fix re seed point, and an optional suggestion about the multiotsu colormap — not something I feel that strongly about.
@kalpanab-psg thanks for the fix! I'm going to merge this now! If you find a better colormap, please open a new PR. =) |
Description
Fixes: #4993
Checklist
./doc/examples
(new features only)./benchmarks
, if your changes aren't covered by anexisting benchmark
For reviewers
later.
__init__.py
.doc/release/release_dev.rst
.