Hi Dominic,
Here’s a sample script to replace the values within the ROI:
global planC;
strNum = 1; %Replace with structure # of interest
%Get associated scan array
scanNum = getStructureAssociatedScan(strNum,planC);
scan3M = getScanArray(scanNum,planC);
%Get structure mask
mask3M = getStrMask(strNum,planC);
%Replace values within mask with assigned densities
scan3M(mask3M) = density3M(mask3M);
where density3M is a matrix of the same size as the original scan array, populated with the values you want to assign within the structure mask.
Hope this helps.
Aditi
--
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/47d99df2-9914-43ab-a2cb-1a99df0c4e4ao%40googlegroups.com.
=====================================================================
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/cerr-forum/4cf01d1c-de9e-49bb-82d8-78d910ff77adn%40googlegroups.com.
Hi Dominic,
Thanks for pointing this out. The CT offset should be subtracted before assigning new density values using:
indexS = planC{end};
CToffset = planC{indexS.scan}(scanNum).scanInfo(1).CTOffset;
scan3M = double(scan3M) – CToffset;
Best,
To view this discussion on the web visit https://groups.google.com/d/msgid/cerr-forum/cd26fbcb-c66b-40d6-b1cd-d9d9ffa737a3n%40googlegroups.com.