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
Pull request to add in support for morphological operations #47
Conversation
added in morphology operations from opencv on MRI images.
Added in opencv as a requirement for python 3.6
added in changes to elastic transform code to apply same changes to image-mask pair or different changes, based on random seed value provided by user. Also allowed processing an list of images rather than a single image, and returning the same processed list to the caller.
fixing indentation
fixing pep8 issues
fixing pesky w503 issues
Hi, |
hi, thanks for your response. No worries, i can try to achieve the same functionality with SimpleITK without resorting to using opencv, for the reasons you mentioned above. i will close this PR. Could you also take a look at the other change i made to augmentation.py (for which i have commented under #31)? Thanks. |
Hi,
I believe users would greatly benefit from performing morphological operations (erosion, dilation, opening, closing, morphological gradient, top_hat and black_hat) on medical images, and have added these in preprocessing.py. I have also added in opencv as a dependency in setup.py and requirements,txt.
All these have been edited under dltk/contrib. I would appreciate if you could take a look and merge it if you think it would help the DLTK platform.