How to open .TRE file?

@Stephen_Aylward First of all, thanks for all the help.
So I managed to convert to nifti, but I am trying to make sense of the centerline position compare to image coordinate. Seems like each object has it’s own coordinate system which is not absolute, is that correct? If so, how compute the world coordinate system for each object? Is there any conversion matrix in each object?

Btw, I am not using cast, I am using the following code:

baseSO = sobj[iterChikdID]
baseSOTyped = itkExtras.down_cast(baseSO)

for iterObjectID in range(0,baseSOTyped.GetNumberOfPoints()):
    
    
    position = baseSOTyped.GetPoint(iterObjectID).GetPositionInObjectSpace()
    indx = mra.TransformPhysicalPointToIndex(position)
    mra.SetPixel(indx, 100000)

1 Like