tomdoel / pulmonarytoolkit

Lung medical image analysis and visualisation software for Matlab.
GNU General Public License v3.0
84 stars 57 forks source link

Change coordinates #39

Open mollymolla opened 4 years ago

mollymolla commented 4 years ago

Hello, I need to change the coordinate system from PTK coordinates to DICOM coordinates (based on tutorial 2), but i can't do it. Is anyone able to help me? Thanks thanks, Monica

tomdoel commented 3 years ago

hi @mollymolla did you manage to resolve this? There is a class MimImageCoordinateUtilities which contains various methods for converting between coordinate systems. For example MimImageCoordinateUtilities.PTKToDicomCoordinates(ptk_coordinates, template_image) will convert from PTK to DICOM coordinates (it requires a template image so it knows how to do the conversion).