# How to implement CPR (curved planar reconstruction) from centerline?

**URL:** <https://discourse.slicer.org/t/how-to-implement-cpr-curved-planar-reconstruction-from-centerline/9456>\
**Category:** Support\
**Tags:** visualization\
**Created:** [December 10, 2019, 3:01am UTC](https://discourse.slicer.org/t/how-to-implement-cpr-curved-planar-reconstruction-from-centerline/9456 "2019-12-10T03:01:27Z")\
**Posts on this page:** 5\
**Page:** 2

<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 6, 2020, 7:02am UTC](https://discourse.slicer.org/t/how-to-implement-cpr-curved-planar-reconstruction-from-centerline/9456/21 "2020-12-06T07:02:46Z")

</div>

Split this topic on December 6, 2020, 7:02am UTC

A post was merged into an existing topic: [Load markups curve from file](https://discourse.slicer.org/t/load-markups-curve-from-file/14905/5)

---

<div class="post-metadata">

**Author:** ![MOMOANNIE](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/momoannie/32/77662_2.png) [@MOMOANNIE](https://discourse.slicer.org/u/MOMOANNIE)\
**Post date:** [August 19, 2024, 7:55am UTC](https://discourse.slicer.org/t/how-to-implement-cpr-curved-planar-reconstruction-from-centerline/9456/22 "2024-08-19T07:55:24Z")

</div>

@lassoan Hello, if I want to use [CPR (curved planar reconstruction)]) on PyCharm to process my own DICOM data, what should I do?

---

<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:** [August 19, 2024, 1:14pm UTC](https://discourse.slicer.org/t/how-to-implement-cpr-curved-planar-reconstruction-from-centerline/9456/23 "2024-08-19T13:14:26Z")

</div>

That should be no problem. See a full example of how to use the Curved Planar Reformat module from a Python script [here](https://github.com/PerkLab/SlicerSandbox/blob/461f25eb6a1a36cd26d437dc47014f3e4cd5bfc3/CurvedPlanarReformat/CurvedPlanarReformat.py#L526-L561). The module requires the Python environment embedded in the 3D Slicer application. If you want to debug in PyCharm then you can follow [these instructions](https://github.com/SlicerRt/SlicerDebuggingTools).

---

<div class="post-metadata">

**Author:** ![MOMOANNIE](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/momoannie/32/77662_2.png) [@MOMOANNIE](https://discourse.slicer.org/u/MOMOANNIE)\
**Post date:** [August 20, 2024, 2:46am UTC](https://discourse.slicer.org/t/how-to-implement-cpr-curved-planar-reconstruction-from-centerline/9456/24 "2024-08-20T02:46:29Z")

</div>

Are there corresponding version requirements for Pycharm and 3D slicer?

---

<div class="post-metadata">

**Author:** ![MOMOANNIE](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/momoannie/32/77662_2.png) [@MOMOANNIE](https://discourse.slicer.org/u/MOMOANNIE)\
**Post date:** [August 20, 2024, 10:09am UTC](https://discourse.slicer.org/t/how-to-implement-cpr-curved-planar-reconstruction-from-centerline/9456/25 "2024-08-20T10:09:53Z")

</div>

Hello, when I debug CurvedPlanarReformat.py, the 3D slicer python console shows this prompt, how can I solve this? My pycharm version is 20241.4, and the 3D slicer version is 5.6.5

 ![Snipaste_2024-08-20_18-09-20](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/c/6c90b1b4a537320b97c17816ce41c0c4abd0ab9d.png)  
 ![Snipaste_2024-08-20_18-08-52](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/8/c840438b723555bf03a0e8669e4758da682957d2.png)

[Previous page](https://discourse.slicer.org/t/how-to-implement-cpr-curved-planar-reconstruction-from-centerline/9456.md?page=1)
