-
Notifications
You must be signed in to change notification settings - Fork 7
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
"Chain" filters in filterplot
(?)
#41
Comments
Thinking more about it - should this be part of the isns.fcplot(img, ["gaussian", "percentile"],
chain_kw=[{"sigma" : 2}, {"percentile" : 10, "size" : 10}],
chain=True) will retrun 'one' image isns.fcplot(img, ["gaussian", "percentile"],
chain_kw=[{"sigma" : 2}, {"percentile" : 10, "size" : 10}],
chain=True, split=True) will return 'all' the intermediary filtered images. So, here it would return - Gaussian filtered image and Gaussian+Percentile filtered image. Going further with this idea, if isns.fcplot(img, ["gaussian", "percentile"],
chain_kw=[{"sigma" : 2}, {"percentile" : 10, "size" : 10}],
chain=False) will return NOTE: function name and parameters are not final.... Need to think more if |
This is going to be added as isns.nfilterplot(data, filt, filt_kws=None, chain=True, split=False) |
Allow chaining different filters together to give a final filtered image
For example, Raw Image ---> Gaussian Filter ---> Percentile Filter ---> Visualize the final filtered image
Currently, in
filterplot()
only individual filters are supported.Potential challenges
While the filters that need to be applied can be passed as a list or something, the kwargs for the different filters need to be handled correctly. Can't just dump all the kwargs into the individual functions...
Something that could work (?)
Create a new
chain_kw
or something and have the individual filter parameters be supplied in there.Maybe something like this (?) :
The text was updated successfully, but these errors were encountered: