# the new coordinate after the curved planar reformation

**URL:** <https://discourse.slicer.org/t/the-new-coordinate-after-the-curved-planar-reformation/26630>\
**Category:** Support\
**Created:** [December 7, 2022, 3:04pm UTC](https://discourse.slicer.org/t/the-new-coordinate-after-the-curved-planar-reformation/26630 "2022-12-07T15:04:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bulalala](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@bulalala](https://discourse.slicer.org/u/bulalala)\
**Post date:** [December 7, 2022, 3:04pm UTC](https://discourse.slicer.org/t/the-new-coordinate-after-the-curved-planar-reformation/26630/1 "2022-12-07T15:04:50Z")

</div>

how does it determine the new coordinate frame after the curved planar reformation? like the determination of origin and the determination of three new axes

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 7, 2022, 3:14pm UTC](https://discourse.slicer.org/t/the-new-coordinate-after-the-curved-planar-reformation/26630/2 "2022-12-07T15:14:03Z")

</div>

You can transform point positions from world (RAS) space to the straightened space using the “Output transform”. For example, you can define point positions in the original image and apply the output transform to get the point positions in the straightened image.

You can invert the transform in the Transforms module if you want to convert point coordinates from the straightened space to the world space.

---

<div class="post-metadata">

**Author:** ![bulalala](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@bulalala](https://discourse.slicer.org/u/bulalala)\
**Post date:** [December 8, 2022, 9:26am UTC](https://discourse.slicer.org/t/the-new-coordinate-after-the-curved-planar-reformation/26630/3 "2022-12-08T09:26:47Z")

</div>

Thank you for your answer. I don’t understand about one point. The straightened space might have axis like XYZ or RAS when the reconstruction results of CPR are presented in 3D space like the image below. In the space of CPR results, it’s like having three axes that are perpendicular to each other by default. How are these three perpendicular axes determined? In other words, what is the basis for choosing these three directions as the new axes?

 ![sample](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/3/f3166965db5ba4617672ea20c8befbde4082a4c0.png)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 8, 2022, 2:10pm UTC](https://discourse.slicer.org/t/the-new-coordinate-after-the-curved-planar-reformation/26630/4 "2022-12-08T14:10:59Z")

</div>

The axes are computed so that the straightened space is positioned and oriented similarly to the the original space. See exact algorithm here:

> <https://github.com/PerkLab/SlicerSandbox/blob/d4a0d5cb491da5d6c9a721fd21c6ab38d43c9528/CurvedPlanarReformat/CurvedPlanarReformat.py#L218>
