-
Notifications
You must be signed in to change notification settings - Fork 1
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
Impose minima and related functions #489
Conversation
048a0cd
to
c50679b
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.
I didn't see any docstrings, so do add those if these are going to be functions that a user can access
The merge-base changed after approval.
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.
Just suggestions in this one, otherwise looks good!
|
||
It supports both integer and grayscale images using different implementations for each. | ||
""" | ||
function impose_minima(I::AbstractArray{T}, BW::AbstractArray{Bool}) where {T<:Integer} |
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.
minor detail, but consider adding a comment after where {T<:Integer} #color image
.
Then below on line 139, consider where {T<:AbstractFloat} #gray image
.
It's clear in the docstring, so maybe not needed.
function impose_minima(I::AbstractArray{T}, BW::AbstractArray{Bool}) where {T<:Integer} | ||
marker = 255 .* BW | ||
mask = imcomplement(min.(I .+ 1, 255 .- marker)) | ||
reconstructed = sk_morphology.reconstruction(marker, mask) |
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.
Is this reconstruction
from skimage closer to the matlab implementation compared to the reconstruction we were using before?
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's the same but a bit faster.
No description provided.