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

morphological_chan_vese #304

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open

morphological_chan_vese #304

wants to merge 36 commits into from

Conversation

haesleinhuepf
Copy link
Member

@haesleinhuepf haesleinhuepf commented Apr 30, 2023

Hi @grahamross123 and @StRigaud ,

just to let you know: I made the morphological_chan_vese work. I'm adding a comment below highlighting the little tricky bit. I also renamed the function to be more similar to the scikit-image API.

If you have time, give it a try. I will otherwise merge and release in about a week.

Big thanks again for working on this!

closes #301
closes #229
closes #296

CC @jo-mueller

@codecov-commenter
Copy link

codecov-commenter commented Apr 30, 2023

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 91.77489% with 76 lines in your changes missing coverage. Please review.

Project coverage is 92.99%. Comparing base (4bc2312) to head (05386b5).
Report is 226 commits behind head on master.

Files with missing lines Patch % Lines
pyclesperanto_prototype/_tier0/_cuda_execute.py 0.00% 26 Missing ⚠️
pyclesperanto_prototype/_tier0/_cuda_backend.py 0.00% 7 Missing ⚠️
pyclesperanto_prototype/_tier8/_deskew_x.py 14.28% 6 Missing ⚠️
pyclesperanto_prototype/_tier9/_imshow.py 0.00% 6 Missing ⚠️
tests/test_morphological_snakes.py 81.81% 6 Missing ⚠️
...ranto_prototype/_tier3/_morphological_chan_vese.py 92.42% 5 Missing ⚠️
pyclesperanto_prototype/_tier0/__init__.py 40.00% 3 Missing ⚠️
pyclesperanto_prototype/_tier0/_array_operators.py 90.00% 3 Missing ⚠️
...enerate_maximum_intensity_between_points_matrix.py 83.33% 2 Missing ⚠️
.../_generate_mean_intensity_between_points_matrix.py 83.33% 2 Missing ⚠️
... and 6 more

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #304      +/-   ##
==========================================
- Coverage   93.03%   92.99%   -0.04%     
==========================================
  Files         742      778      +36     
  Lines       13564    14440     +876     
==========================================
+ Hits        12619    13429     +810     
- Misses        945     1011      +66     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

temp_5 = create_like(output_image)

for _ in range(num_iter):
set(temp_3, 0)
Copy link
Member Author

Choose a reason for hiding this comment

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

Hint: I had to initialize this image here with 0 because the create* functions only allocate memory. Further down, we compute temp_3 += .... which might be dangerous with a non-initialized image.

@haesleinhuepf haesleinhuepf changed the title Morphological snakes2 morphological_chan_vese Apr 30, 2023
@grahamross123
Copy link
Collaborator

Thanks for finishing this @haesleinhuepf! It works as expected for me.

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