Skip to content
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

Automated thresholding suggestions #315

Merged

Conversation

JeremyPike
Copy link
Contributor

@JeremyPike JeremyPike commented Dec 11, 2023

Three suggestions:

  1. The text interpreting the histogram of data/maize-root-cluster.jpg implies that the peak at near 1.0 corresponds to the signal we are interested in (the root). This is actually the label and disk as covered later in the episode. Text altered and more detailed explanation added.
  2. Variable names with underscores to be consistent.
  3. In the solution to "IGNORING MORE OF THE IMAGES – IMPLEMENTATION (30 MIN - OPTIONAL, NOT INCLUDED IN TIMING)" the bright pixels (>0.95) are set to zero before calculating the Otsu threshold. I think it is best practice to just exclude them when calculating the threshold as the additional zero pixels will slightly distort the histogram. Solution altered to use this approach.

Copy link

github-actions bot commented Dec 11, 2023

Thank you!

Thank you for your pull request 😃

🤖 This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}.

If you have files that automatically render output (e.g. R Markdown), then you should check for the following:

  • 🎯 correct output
  • 🖼️ correct figures
  • ❓ new warnings
  • ‼️ new errors

Rendered Changes

🔍 Inspect the changes: https://github.com/datacarpentry/image-processing/compare/md-outputs..md-outputs-PR-315

The following changes were observed in the rendered markdown documents:

 07-thresholding.md | 71 ++++++++++++++++++++++++++++++++++++++----------------
 md5sum.txt         |  2 +-
 2 files changed, 51 insertions(+), 22 deletions(-)
What does this mean?

If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible.

This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation.

⏱️ Updated at 2024-02-01 14:16:02 +0000

github-actions bot pushed a commit that referenced this pull request Dec 11, 2023
@JeremyPike JeremyPike marked this pull request as ready for review December 11, 2023 11:12
@JeremyPike JeremyPike force-pushed the automated-thresholding-suggestions branch from a0cf837 to 1717003 Compare December 11, 2023 12:51
github-actions bot pushed a commit that referenced this pull request Dec 11, 2023
Copy link
Member

@tobyhodges tobyhodges left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making these suggestions @JeremyPike. They are technically correct (the best kind of correct) but I am not sure I prefer your ordering of things in terms of managing cognitive load/designing a learning experience.

I would like a second opinion and have requested input from my fellow Maintainers. Given her recent engagement with the curriculum, I will also tag @mkcor.

@tobyhodges
Copy link
Member

I'd like to get this PR resolved soon, and we would benefit from input on the discussion above from other @datacarpentry/image-processing-curriculum-maintainers and/or @datacarpentry/curriculum-advisors-image

@uschille uschille self-assigned this Jan 22, 2024
Copy link
Contributor

@uschille uschille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR @JeremyPike , these are great observations. I taught the curriculum last week and indeed framed the binary thresholding as a way to separate foreground and background, as @tobyhodges mentioned. I agree though that it would be good to be a bit more precise about the peaks in the histogram (I was actually expecting questions from learners). I've taken a stab at editing the suggestion.

As a side note, Otsu's method does not work well for the first image (the colored shapes) in the lesson. This could be a good example for instructors to discuss provided there is time. I've added an instructors note on this.

@uschille uschille removed their assignment Jan 28, 2024
@tobyhodges
Copy link
Member

Thanks for engaging @uschille. @JeremyPike if you have time to respond and let us know how you feel about Ulf's (and my) proposed changes, we may be able to get this merged soon.

Suggestions from review

Co-authored-by: Ulf Schiller <[email protected]>
Co-authored-by: Toby Hodges <[email protected]>
github-actions bot pushed a commit that referenced this pull request Feb 1, 2024
github-actions bot pushed a commit that referenced this pull request Feb 1, 2024
@JeremyPike JeremyPike marked this pull request as draft February 1, 2024 08:30
github-actions bot pushed a commit that referenced this pull request Feb 1, 2024
@JeremyPike JeremyPike marked this pull request as ready for review February 1, 2024 08:39
@JeremyPike
Copy link
Contributor Author

JeremyPike commented Feb 1, 2024

Thanks for engaging @uschille. @JeremyPike if you have time to respond and let us know how you feel about Ulf's (and my) proposed changes, we may be able to get this merged soon.

Thank you @uschille @mkcor and @tobyhodges for all the great suggestions and comments. In order to bring this together I've made some commits which try to implement what I perceive the consensus to be. Its potentially ready to merge now after a quick sanity check but happy to put in more changes too :)

@JeremyPike JeremyPike requested a review from tobyhodges February 1, 2024 08:47
github-actions bot pushed a commit that referenced this pull request Feb 1, 2024
github-actions bot pushed a commit that referenced this pull request Feb 1, 2024
github-actions bot pushed a commit that referenced this pull request Feb 1, 2024
Copy link
Member

@tobyhodges tobyhodges left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made one suggestion to fix my own typo from yesterday, but otherwise this is looking very good. Thanks so much for coming back to it, @JeremyPike.

@tobyhodges
Copy link
Member

If I recall correctly, @JeremyPike will be teaching the lesson in a workshop soon. I hope it goes well, and please return with more constructive feedback and suggested improvements based on your experience!

Co-authored-by: Toby Hodges <[email protected]>
@JeremyPike
Copy link
Contributor Author

If I recall correctly, @JeremyPike will be teaching the lesson in a workshop soon. I hope it goes well, and please return with more constructive feedback and suggested improvements based on your experience!

Thanks @tobyhodges, will do!

github-actions bot pushed a commit that referenced this pull request Feb 1, 2024
@tobyhodges tobyhodges merged commit efa451b into datacarpentry:main Feb 2, 2024
3 checks passed
github-actions bot pushed a commit that referenced this pull request Feb 2, 2024
Auto-generated via {sandpaper}
Source  : efa451b
Branch  : main
Author  : Toby Hodges <[email protected]>
Time    : 2024-02-02 09:28:29 +0000
Message : Merge pull request #315 from bear-rsg/automated-thresholding-suggestions

Automated thresholding suggestions
github-actions bot pushed a commit that referenced this pull request Feb 2, 2024
Auto-generated via {sandpaper}
Source  : d775dd1
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2024-02-02 09:29:37 +0000
Message : markdown source builds

Auto-generated via {sandpaper}
Source  : efa451b
Branch  : main
Author  : Toby Hodges <[email protected]>
Time    : 2024-02-02 09:28:29 +0000
Message : Merge pull request #315 from bear-rsg/automated-thresholding-suggestions

Automated thresholding suggestions
@JeremyPike JeremyPike deleted the automated-thresholding-suggestions branch February 2, 2024 10:23
github-actions bot pushed a commit that referenced this pull request Feb 6, 2024
Auto-generated via {sandpaper}
Source  : d775dd1
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2024-02-02 09:29:37 +0000
Message : markdown source builds

Auto-generated via {sandpaper}
Source  : efa451b
Branch  : main
Author  : Toby Hodges <[email protected]>
Time    : 2024-02-02 09:28:29 +0000
Message : Merge pull request #315 from bear-rsg/automated-thresholding-suggestions

Automated thresholding suggestions
github-actions bot pushed a commit that referenced this pull request Feb 13, 2024
Auto-generated via {sandpaper}
Source  : d775dd1
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2024-02-02 09:29:37 +0000
Message : markdown source builds

Auto-generated via {sandpaper}
Source  : efa451b
Branch  : main
Author  : Toby Hodges <[email protected]>
Time    : 2024-02-02 09:28:29 +0000
Message : Merge pull request #315 from bear-rsg/automated-thresholding-suggestions

Automated thresholding suggestions
github-actions bot pushed a commit that referenced this pull request Feb 20, 2024
Auto-generated via {sandpaper}
Source  : d775dd1
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2024-02-02 09:29:37 +0000
Message : markdown source builds

Auto-generated via {sandpaper}
Source  : efa451b
Branch  : main
Author  : Toby Hodges <[email protected]>
Time    : 2024-02-02 09:28:29 +0000
Message : Merge pull request #315 from bear-rsg/automated-thresholding-suggestions

Automated thresholding suggestions
github-actions bot pushed a commit that referenced this pull request Feb 27, 2024
Auto-generated via {sandpaper}
Source  : d775dd1
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2024-02-02 09:29:37 +0000
Message : markdown source builds

Auto-generated via {sandpaper}
Source  : efa451b
Branch  : main
Author  : Toby Hodges <[email protected]>
Time    : 2024-02-02 09:28:29 +0000
Message : Merge pull request #315 from bear-rsg/automated-thresholding-suggestions

Automated thresholding suggestions
github-actions bot pushed a commit that referenced this pull request Mar 5, 2024
Auto-generated via {sandpaper}
Source  : d775dd1
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2024-02-02 09:29:37 +0000
Message : markdown source builds

Auto-generated via {sandpaper}
Source  : efa451b
Branch  : main
Author  : Toby Hodges <[email protected]>
Time    : 2024-02-02 09:28:29 +0000
Message : Merge pull request #315 from bear-rsg/automated-thresholding-suggestions

Automated thresholding suggestions
github-actions bot pushed a commit to govekk/image-processing that referenced this pull request Mar 8, 2024
Auto-generated via {sandpaper}
Source  : efa451b
Branch  : main
Author  : Toby Hodges <[email protected]>
Time    : 2024-02-02 09:28:29 +0000
Message : Merge pull request datacarpentry#315 from bear-rsg/automated-thresholding-suggestions

Automated thresholding suggestions
github-actions bot pushed a commit to uschille/image-processing that referenced this pull request Mar 11, 2024
Auto-generated via {sandpaper}
Source  : efa451b
Branch  : main
Author  : Toby Hodges <[email protected]>
Time    : 2024-02-02 09:28:29 +0000
Message : Merge pull request datacarpentry#315 from bear-rsg/automated-thresholding-suggestions

Automated thresholding suggestions
github-actions bot pushed a commit to uschille/image-processing that referenced this pull request Mar 11, 2024
Auto-generated via {sandpaper}
Source  : 3dc37db
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2024-03-11 23:15:04 +0000
Message : markdown source builds

Auto-generated via {sandpaper}
Source  : efa451b
Branch  : main
Author  : Toby Hodges <[email protected]>
Time    : 2024-02-02 09:28:29 +0000
Message : Merge pull request datacarpentry#315 from bear-rsg/automated-thresholding-suggestions

Automated thresholding suggestions
github-actions bot pushed a commit that referenced this pull request Mar 12, 2024
Auto-generated via {sandpaper}
Source  : d775dd1
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2024-02-02 09:29:37 +0000
Message : markdown source builds

Auto-generated via {sandpaper}
Source  : efa451b
Branch  : main
Author  : Toby Hodges <[email protected]>
Time    : 2024-02-02 09:28:29 +0000
Message : Merge pull request #315 from bear-rsg/automated-thresholding-suggestions

Automated thresholding suggestions
github-actions bot pushed a commit to uschille/image-processing that referenced this pull request Mar 12, 2024
Auto-generated via {sandpaper}
Source  : 3dc37db
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2024-03-11 23:15:04 +0000
Message : markdown source builds

Auto-generated via {sandpaper}
Source  : efa451b
Branch  : main
Author  : Toby Hodges <[email protected]>
Time    : 2024-02-02 09:28:29 +0000
Message : Merge pull request datacarpentry#315 from bear-rsg/automated-thresholding-suggestions

Automated thresholding suggestions
github-actions bot pushed a commit that referenced this pull request Mar 12, 2024
Auto-generated via {sandpaper}
Source  : d775dd1
Branch  : md-outputs
Author  : GitHub Actions <[email protected]>
Time    : 2024-02-02 09:29:37 +0000
Message : markdown source builds

Auto-generated via {sandpaper}
Source  : efa451b
Branch  : main
Author  : Toby Hodges <[email protected]>
Time    : 2024-02-02 09:28:29 +0000
Message : Merge pull request #315 from bear-rsg/automated-thresholding-suggestions

Automated thresholding suggestions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants