-
Notifications
You must be signed in to change notification settings - Fork 536
Fuzzy overlap Jaccard and Dice indices computation #622
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
Conversation
Some details are still to be fixed
out_file = File("diff.nii", usedefault=True) | ||
|
||
|
||
class FuzzyOverlapOutputSpec(TraitedSpec): |
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.
some descriptions of each of the outputs needed.
outputs = self._outputs().get() | ||
for method in ("dice", "jaccard"): | ||
outputs[method] = getattr(self, '_' + method) | ||
#outputs['volume_difference'] = self._volume |
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.
remove if not required.
this looks good, please run pep8 on this file. (in addition to pep8 fixes for this interface, we welcome pep8 fixes on the file if you have time). |
Added pep8 fixes for the whole interface |
|
||
>>> overlap = FuzzyOverlap() | ||
>>> overlap.inputs.in_ref = [ 'ref_class0.nii', 'ref_class1.nii' ] | ||
>>> overlap.inputs.in_tst = [ 'tst_class0.nii', 'tst_class1.nii' ] |
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.
you should add those dummy files - otherwise nosetest --with-docetest will fail
Files added in response of #622 (comment)
Minor change, as the names were not descriptive.
Added dummy files |
Something else? :) |
Fuzzy overlap Jaccard and Dice indices computation
Calculates various overlap measures between probabilistic distribution maps of segmentations, using the fuzzy definition proposed in: Crum et al., Generalized Overlap Measures for Evaluation and Validation in Medical Image Analysis, IEEE Trans. Med. Ima. 25(11),pp 1451-1461, Nov. 2006.
Follows the standard Overlap interface. For justification of this method, please see provided ref.