How to get the following COUCH shift parameters from Eclipse API V11

Developer
Jul 25, 2014 at 5:30 PM
Hi everyone,
How to get the following COUCH shift parameters from Eclipse API V11?
1> DICOM user origin Coordinates
2>Isocenter DICOM coordinates

I also have troubles to get the “Depth” value of the field reference point. ONLY “Effective Depth” is available in Eclipse API V11. Is there another way to get the parameter?

Thanks,
Angell
Coordinator
Jul 25, 2014 at 7:05 PM
1> Image.UserOrigin
2> Beam.IsocenterPosition

The depth is not directly available, but there is FieldReferencePoint.SSD. This together with FieldReferencePoint.RefPointLocation and Beam.GetSourceLocation() should make it easy to calculate.
Developer
Jul 30, 2014 at 3:03 PM
Thank you very much for the responses.
One more question: if I get FieldReferencePoint.SSD, FieldReferencePoint.RefPointLocation and Beam.GetSourceLocation() , what is the formula of calculating the "Depth"? (I am not a physics, I am short of some background knowledge).
Coordinator
Jul 31, 2014 at 9:58 PM
It would be something like this:
FieldReferencePoint st = beam.FieldReferencePoints.First(f => f.ReferencePoint.Id == "st");
VVector loc = st.RefPointLocation;
VVector source = beam.GetSourceLocation(beam.ControlPoints[0].GantryAngle);
double dist = Math.Sqrt(Math.Pow(loc.x - source.x, 2) + Math.Pow(loc.y - source.y, 2) + Math.Pow(loc.z - source.z, 2));
double depth = dist - st.SSD;
Developer
Aug 1, 2014 at 3:41 PM
It works. Thank you very much!