Suppose the template has a corresponding label map (atlas), and our goal is to obtain the label map for the target image. How to apply the warpping map (or resultant displacement field) to the template label map after lddmm registration?
I think I just found the answer..
(deformedlabel,,,) = lddmm.applyThisTransform(template_label, interpmode='nearest')
deformed_label = deformed_label[-1].cpu().numpy()
Suppose the template has a corresponding label map (atlas), and our goal is to obtain the label map for the target image. How to apply the warpping map (or resultant displacement field) to the template label map after lddmm registration?