<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="margin: 0px; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0);" class=""><span style="font-kerning: none" class="">Hi Thomas,</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0); min-height: 14px;" class=""><span style="font-kerning: none" class=""></span><br class=""></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0);" class=""><span style="font-kerning: none" class="">Thank you for your prompt answer. Indeed you were right, my ROIs were saved apparently with the CT characteristics, I have to figure out why. I followed your instructions to be able to open the ROIs with the PET and CT images, and it works perfectly, thanks for this solution.</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0); min-height: 14px;" class=""><span style="font-kerning: none" class=""></span><br class=""></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0);" class=""><span style="font-kerning: none" class="">However, I do have some others questions about the RTStruct.</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0); min-height: 14px;" class=""><span style="font-kerning: none" class=""></span><br class=""></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0);" class=""><span style="font-kerning: none" class="">When I open the RTStruct with the CT which has the identity matrix, everything works fine and I can visualize the correct ROIs. If I try to do the same with the CT which has a rotation and translation matrix, I can’t open the RTStruct. If I understood well, it’s because my RTStruct was saved with the rotated Dicom. </span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0);" class=""><span style="font-kerning: none" class="">Do the RTStruct and the corresponding image must have necessarily an identity matrix or do they must just have the same rotation and translation matrix ?</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0);" class=""><span style="font-kerning: none" class="">In our case, couldn't it be possible to pass from the first step (clitkDicom2Image) directly to the third (clitkDicomRTStruct2Image) ? (by keeping the rotation and translation information in the RTStruct instead to transform the CT?)</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0); min-height: 14px;" class=""><span style="font-kerning: none" class=""></span><br class=""></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0);" class=""><span style="font-kerning: none" class="">Moreover, when I link the two CTs, I noticed that the position of the visible ROIs (in the CT transformed) and the positions of the « missing ROIs » (in the original CT) are exactly in the same coordinates in mm in both CTs. If there is a perfect match (in mm), why the rotation and translation matrix prevents for visualizing the ROIs ?</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0); min-height: 14px;" class=""><span style="font-kerning: none" class=""></span><br class=""></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0);" class=""><span style="font-kerning: none" class="">Thank you for your help,</span></div><div style="margin: 0px; line-height: normal; -webkit-text-stroke-width: initial; -webkit-text-stroke-color: rgb(0, 0, 0);" class=""><span style="font-kerning: none" class="">Best regards,</span></div><div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Nérée </div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">Le 10 août 2017 à 10:34, Thomas BAUDIER <<a href="mailto:thomas.baudier@creatis.insa-lyon.fr" class="">thomas.baudier@creatis.insa-lyon.fr</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Neree,<br class=""><br class="">I already encountered your problems:<br class=""> - you can't correctly visualize the ROI with the PET image because the spacing of the 3rd dimension of the ROI is 2.5mm (like the CT) and 4.0mm for the PET.<br class="">We don't deal with this kind of situation in vv because we expect to open the RTStruct with the corresponding image (here the CT).<br class=""> - the second problem is that the CT has a Rotation and Translation matrix. And in your case the RTStrunt was saved with the rotated Dicom.<br class="">In vv, we consider the opposite.<br class=""><br class="">I'm sorry, this is choices we've done on the software. I'll talk with David and Simon to improve it.<br class="">But I have a solution the clitk tools.<br class=""> - The fist step is to transform your dicom into mhd: clitkDicom2Image Body-Low-Dose_CT/*.dcm -o Body-Low-Dose_CT/CT.mhd<br class=""> - You have to transform the CT to have an identity transformed matrix: clitkAffineTransform -i Body-Low-Dose_CT/CT.mhd -o Body-Low-Dose_CT/CT.mhd --transform_grid<br class=""> - Finally, convert your RTStruct into mhd ROI: clitkDicomRTStruct2Image -i ROIs/IM-0001-10000-0001.dcm -j Body-Low-Dose_CT/CT.mhd -o ROIs/ROI<br class=""><br class="">Now you can open the ROIs with the PET ant CT images into vv.<br class=""><br class="">Don't hesitate if you have others questions<br class="">Thomas<br class=""><br class="">On 2017-08-08 18:40, Neree PAYAN wrote:<br class=""><blockquote type="cite" class="">Dear All,<br class="">I have DICOM PET images with the associated ROIs (= RT-Struct DICOM<br class="">format). When I try to visualize them on the PET image, I obtain<br class="">incorrect ROIs in vv while using 3D Slicer everything seems good.<br class="">Moreover, for all my data, ROIs were drawn by merging the PET and CT<br class="">scan images, so I’m expecting to be able to visualize them in both<br class="">CT or PET images (as is the case with Slicer). But I never succeeded<br class="">to visualize the ROIs on the CT with vv.<br class="">Have you got any idea why I have these problems ?<br class="">You can find the CT, PET and RTStruct DICOM on this download link:<br class=""><a href="https://cloud.u-bourgogne.fr/index.php/s/EoJ73gwyHmdoEJo" class="">https://cloud.u-bourgogne.fr/index.php/s/EoJ73gwyHmdoEJo</a> [1]<br class="">Thank you in advance for your help,<br class="">Best Regards,<br class="">Nérée<br class="">Links:<br class="">------<br class="">[1] <a href="https://cloud.u-bourgogne.fr/index.php/s/EoJ73gwyHmdoEJo" class="">https://cloud.u-bourgogne.fr/index.php/s/EoJ73gwyHmdoEJo</a><br class="">_______________________________________________<br class="">vv mailing list<br class=""><a href="mailto:vv@creatis.insa-lyon.fr" class="">vv@creatis.insa-lyon.fr</a><br class="">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv<br class=""></blockquote>_______________________________________________<br class="">vv mailing list<br class=""><a href="mailto:vv@creatis.insa-lyon.fr" class="">vv@creatis.insa-lyon.fr</a><br class="">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv</div></div></blockquote></div><br class=""></body></html>