-
Notifications
You must be signed in to change notification settings - Fork 509
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
Handling of mismatched size mask is still not working #259
Labels
Comments
@JoostJM I suggest to fix this by having |
fedorov
added a commit
to fedorov/pyradiomics
that referenced
this issue
May 25, 2017
This resolves AIM-Harvard#259 In the situation when the mask was corrected to compensate for the differences between the image and mask geometry, the updated mask was not propagated to be used for feature calculation.
No objections, saves me the trouble ;-)
…-------- Oorspronkelijk bericht --------
Van: Andrey Fedorov <[email protected]>
Datum: 25-05-17 20:09 (GMT+01:00)
Aan: Radiomics/pyradiomics <[email protected]>
Cc: Joost van Griethuysen <[email protected]>, Mention <[email protected]>
Onderwerp: Re: [Radiomics/pyradiomics] Handling of mismatched size mask is still not working (#259)
@JoostJM<https://github.com/joostjm> I suggest to fix this by having checkMask return a tuple of bounding box and an updated mask, if it had to be resampled, and then use that updated mask after the mask check. Do you have objections?
-
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#259 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ARMRw_K75SeakVoZEMe8xLxZrA-cC5gwks5r9cPugaJpZM4NlWkS>.
|
fedorov
added a commit
to fedorov/pyradiomics
that referenced
this issue
May 29, 2017
This resolves AIM-Harvard#259 In the situation when the mask was corrected to compensate for the differences between the image and mask geometry, the updated mask was not propagated to be used for feature calculation.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the issue is that the resampled mask does not get propagated from here: https://github.com/Radiomics/pyradiomics/blob/master/radiomics/imageoperations.py#L238
checkMask
returns the bounding box for the resampled mask here: https://github.com/Radiomics/pyradiomics/blob/master/radiomics/featureextractor.py#L326But
cropToTumorMask
is operating on the original mask before resampling: https://github.com/Radiomics/pyradiomics/blob/master/radiomics/featureextractor.py#L340Identified by Dev Gude.
The text was updated successfully, but these errors were encountered: