SlicerRt / SlicerRT

Open-source toolkit for radiation therapy research, an extension of 3D Slicer. Features include DICOM-RT import/export, dose volume histogram, dose accumulation, external beam planning (TPS), structure comparison and morphology, isodose line/surface generation, etc.
https://slicerrt.org
128 stars 60 forks source link

Fix patient support rotation angle to fixed reference #235

Closed MichaelColonel closed 11 months ago

MichaelColonel commented 11 months ago

There is a new bug in vtkSlicerIECTransformLogic. Couch angle rotation between patient support rotation and fixed reference is calculated in wrong direction. The result of this bug is incorrect beam orientation.

Current

this->UpdatePatientSupportRotationToFixedReferenceTransform(-1.0 * beamNode->GetCouchAngle());

Test data

Screenshot_before

Should be

this->UpdatePatientSupportRotationToFixedReferenceTransform(beamNode->GetCouchAngle());

Screenshot_after

ferdymercury commented 11 months ago

Thanks for finding out! @cpinter this can be closed now