Skip to content
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

Question #5

Open
Zanbo0 opened this issue May 24, 2022 · 4 comments
Open

Question #5

Zanbo0 opened this issue May 24, 2022 · 4 comments

Comments

@Zanbo0
Copy link

Zanbo0 commented May 24, 2022

Hello, I read your paper. That is excellent. But I have a question, how can we get the feature_map.mha and the mask.mha.
I would be very grateful if you reply.

@satishev
Copy link
Contributor

Feature_map would be the output of computing a pixel-wise texture map from an input image.
Mask would be the annotation of the region of interest that you are analyzing (so RADISTAT is limited to within that region)

@Zanbo0
Copy link
Author

Zanbo0 commented May 30, 2022

I appreciate your reply very much. I am a CS student, a beginner in RADIOMIC. I have the .dcm and nii.gz, should I transform them to .mha? And the feature_map and mask need my own calculations or they are generated with software.

@satishev
Copy link
Contributor

You can try to extract feature_map using from the DCM/NII.GZ file using tools such as pyradiomics - the result of which should be a pixel-wise map that you can save as an MHA file. Mask is a file that specifies the ROI - usually defined by the user in some fashion (bounding box/lesion area etc.)

@Zanbo0
Copy link
Author

Zanbo0 commented Jun 16, 2022

Hello, after studying I have some questions again. Now I can transform mask.mha and feature_map.mha, and use them to generate the label_mask. As @jta35 said that there are incorrect arguments passed to slic() in radistat.py, and more issues will happen when I try to fix them. Such as generating the bar charts and computing the texture_vec, spatial_vec.

I don't know how to use the mask to filter out the feature_map, and the generation of bar charts has errors. Here is the error information.

ValueError: shape mismatch: objects cannot be broadcast to a single shape. Mismatch is between arg 0 with shape (3,) and arg 1 with shape (0,).

And I noticed that the shape of your data is (222,222), but my data's is (512,512), I don't know if this has any effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants