Here is sample code to extract radiomics from the central axial slice. Please pull the latest updates from github to get the correct config file used in the example shown below.
% Access PlanC from the viewer or from file
global planC
indexS = planC{end};
% Create a new structure with just the central slice
structNum = 3; % structre for which to obtain the central slice
struct3M = getStrMask(structNum,planC);
numSlcs = size(struct3M,3);
[~,~,~,~,sMin,sMax] = compute_boundingbox(struct3M);
centralSlc = round(median(sMin:sMax));
allSlcNumV = 1:numSlcs;
allSlcNumV(centralSlc) = [];
struct3M(:,:,allSlcNumV) = false;
isUniform = 0;
scanNum = 1;
strName = 'central slice';
planC = maskToCERRStructure(struct3M,isUniform, scanNum, strName, planC);
% Calculate features (required settings can be adjusted in JSON config file. Refer to Wiki for documentation)
paramFileName = fullfile(getCERRPath,'PlanMetrics','heterogenity_metrics','sample_radiomics_extraction_settings.json');
paramS = getRadiomicsParamTemplate(paramFileName);
centralSlcStructNum = length(planC{indexS.structures});
featureS = calcGlobalRadiomicsFeatures(scanNum, centralSlcStructNum, paramS, planC);
disp('Features:')
featureS.shapeS
featureS.Original
featureS.Original.firstOrderS
--
You received this message because you are subscribed to the Google Groups "CERR FORUM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
cerr-forum+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/cerr-forum/b56e2858-0ec9-4dd4-9c8b-7f13aefb7ee8n%40googlegroups.com.
*** Only open attachments or links from trusted senders. Report phishing to
inf...@mskcc.org ***
=====================================================================
Please note that this e-mail and any files transmitted from
Memorial Sloan Kettering Cancer Center may be privileged, confidential,
and protected from disclosure under applicable law. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any reading, dissemination, distribution,
copying, or other use of this communication or any of its attachments
is strictly prohibited. If you have received this communication in
error, please notify the sender immediately by replying to this message
and deleting this message, any attachments, and all copies and backups
from your computer.