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

Radiomics first order stats #847

Open
laurar2022 opened this issue Jan 31, 2023 · 3 comments
Open

Radiomics first order stats #847

laurar2022 opened this issue Jan 31, 2023 · 3 comments

Comments

@laurar2022
Copy link

Hi, i have loaded a structure from a RT DICOM file to modify it. But after doing so, the first order features i get from the function radiomics_first_order_stats are the same as when the structure wasn't modified. I don't know if CERR isn't saving the changes I'm making to the structure, but every time I modify it I click save. Still the first order features don't change.

@adityaapte
Copy link
Collaborator

Perhaps you can check whether you get a different volume for the modified structure using the following. Make sure to use "global planC" to get changes from the GUI.

global planC

% Structure volume
getStructureVol(structNum,planC)

% Obtain first order statistics
offsetForEnergy = 1000; % For CT, for example. Can be set to 0 for PET, MR.
binWidth = 10;
binNum = [];
firstOrderS = radiomics_first_order_stats(planC,structNum,offsetForEnergy,binWidth,binNum)

There were updates to this routine to accept number of bins for entropy calculation. Please pull the latest updates.

@laurar2022
Copy link
Author

I've checked the volume with getStructureVol and it changes when modifying the structure, however first order stats remain the same. I've checked I have the updated version from 2018 and I'm using global planC.

@adityaapte
Copy link
Collaborator

radiomics_first_order_stats accepts structure and scan index from planC or the structure and scan matrices. You will have to pass scan and structure index to radiomics_first_order_stats so that it uses the modified structure from planC.

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