# segment background dosn't move in transformation (JPEG - 2D) +++

**URL:** <https://discourse.slicer.org/t/segment-background-dosnt-move-in-transformation-jpeg-2d/16619>\
**Category:** Support\
**Created:** [March 18, 2021, 2:51pm UTC](https://discourse.slicer.org/t/segment-background-dosnt-move-in-transformation-jpeg-2d/16619 "2021-03-18T14:51:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freshairfanatic](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@Freshairfanatic](https://discourse.slicer.org/u/Freshairfanatic)\
**Post date:** [March 18, 2021, 2:51pm UTC](https://discourse.slicer.org/t/segment-background-dosnt-move-in-transformation-jpeg-2d/16619/1 "2021-03-18T14:51:35Z")

</div>

Operating system: Win10  
Slicer version: 4.11  
Expected behavior:  
For simmulating an orthognathic operation (here: forewarddisplacement of the mandible (lower jaw))  
mark points - create a segment (Scissors = just outline) - move segment (points in the segment follow along) - rotation of the segment around amanually asigned point - coordinates of the markups acualisize to the new position automatically

Actual behavior:  
I did:

- load an JPEG (2D)
- place some markups
- create an segement (unfortunately \>Paint\< because \>Scissors\< will not work)
- transform the segment and the markups in the desired direction

Problems that occured (ordered by importance (1th = most important)

1. the background X-ray area under the segment does not move with the segment (green area)
2. coordinates of the markups in the description (R, A Value) do not change according to the change of position
3. rotation seems to happen arround the upper left corner of the picture, not where I want it
4. markups have to be added to the transformed segment manually - they don’t follow automatically (if inside the segment / selection)

I am grateful for any help, but problems 1 and 2 are crucial…  
Th

 ![Ausgang](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/e/4e6b9ed4ef3de79e33bc1f4413430e53ad3a8969.jpeg) ![Verlagert](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/2/72cdb8fcb992906e2df58aff6fe2e0d4eb0563ae.jpeg) anks a lot in advance

Johannes

---

<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:** [March 18, 2021, 4:23pm UTC](https://discourse.slicer.org/t/segment-background-dosnt-move-in-transformation-jpeg-2d/16619/2 "2021-03-18T16:23:35Z")

</div>

> [@Freshairfanatic](#):
>
> create an segement (unfortunately \>Paint\< because \>Scissors\< will not work)

By default Scissors is in Erase mode. You can set it to fill mode if you want to fill regions with it.

> [@Freshairfanatic](#):
>
> the background X-ray area under the segment does not move with the segment (green area)

Apply the same transform to both the segmentation, image, and markups.

> [@Freshairfanatic](#):
>
> coordinates of the markups in the description (R, A Value) do not change according to the change of position

You can choose to see the coordinates in world or local coordinate system (“Transformed” checkbox).

> [@Freshairfanatic](#):
>
> rotation seems to happen arround the upper left corner of the picture, not where I want it

You can use Fiducial registration wizard (in SlicerIGT extension) to rotate/align objects. If you want to rotate with a slider then you can set up a center of rotation point or rotation axis line as shown in [examples in the script repository](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Rotate_a_node_around_a_specified_point).

> [@Freshairfanatic](#):
>
> markups have to be added to the transformed segment manually - they don’t follow automatically (if inside the segment / selection)

Please clarify. Adding an annotated screenshot can help.

General advice: You can figure out the workflow by using Slicer core modules, and once you know what to do, it is usually worth to create a small Python scripted module to automate the workflow. In the GUI of your module everything is available in one place, you only show the necessary options, and automate everything as much as possible.

---

<div class="post-metadata">

**Author:** ![lili-yu22](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lili-yu22](https://discourse.slicer.org/u/lili-yu22)\
**Post date:** [June 15, 2024, 12:31am UTC](https://discourse.slicer.org/t/segment-background-dosnt-move-in-transformation-jpeg-2d/16619/3 "2024-06-15T00:31:54Z")

</div>

> [@lassoan](#):
>
> You can choose to see the coordinates in world or local coordinate system (“Transformed” checkbox).

please guide me how can i get the transformed checkbox，being deeply grateful.

---

<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:** [June 15, 2024, 5:21am UTC](https://discourse.slicer.org/t/segment-background-dosnt-move-in-transformation-jpeg-2d/16619/4 "2024-06-15T05:21:26Z")

</div>

It is in Control Points section in Markups module:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/3/338c91b07210be501563ab8f4508d32d1772008c.png)

---

<div class="post-metadata">

**Author:** ![lili-yu22](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@lili-yu22](https://discourse.slicer.org/u/lili-yu22)\
**Post date:** [June 15, 2024, 9:35am UTC](https://discourse.slicer.org/t/segment-background-dosnt-move-in-transformation-jpeg-2d/16619/5 "2024-06-15T09:35:45Z")

</div>

thank you very muchfor your reply
