May 17, 2023, 7:43am
How to realize the movement of mask/roi through 3dsclicer without changing the size and shape of mask/roi？
Please provide me with detailed steps to achieve this operation, thank you all.
Look forward to your reply
May 17, 2023, 4:08pm
You can create a transform in Transforms module and then apply that to the segmentation.
The transform is applied to all segments in the segmentation, so if you want to move only one segment then you can move that segment into a separate segmentation, apply the transform, and then move the segment back to the original segmentation.
May 19, 2023, 3:08am
Thank you for your answer
However, since I am not familiar with this function of 3dslicer and still do not know how to implement this process, could you please provide more detailed operation steps? Thanks!
Looking forward to your reply again
May 19, 2023, 5:43am
See these two documents:
This file has been truncated.
Being able to transform any of the data nodes (volumes, models, markups and ROIs) is one of the most powerful features of 3D Slicer. It is a complex module with many different options that are dependent on the type of the transform (e.g., linear or non-linear)
We will be using the `Transform` module mostly to manually align a volume or a mesh to an orientation, e.g., to bring scans/specimens into some sort of anatomical orientation. You have seen in `CropVolume` that you can use a ROI to subset a portion of your datasets. But sometimes you need more flexibility in orienting the ROI than simply moving the handles. In such case you can put your ROI node under a transform and rotate and modify it as you need.
Let's look at the basic of the `Transform` module:
1. Go to `Data` Module, and load a 3D model. For this tutorial, I am using the Gorilla skull in the SlicerMorph `Sample Data` module but you can use any 3D model you like.
2. Make sure you are in the **Subject Hierarchy** tab of the `Data` module
3. Right-click on your 3D model node and choose **Clone**. This will create a copy of your existing model.
4. Adjust the colors of these models by clicking on the color square such that they are easily distinguished.
5. Click on the layout icon and choose **Dual 3D**
6. Click on the pin to bring 3D view settings, and the lock the two viewers. This way 3D view will be sync and any camera movement (i.e., moving specimen in 3D space will be changing both views). Rotate the specimen in one view and note that's reflected in the other viewer.
7. You can adjust the size of the 3D views by dragging the bar separating slice views from 3D viewers and moving up and down (indicated by yellow rectangle). At this point you are probably seeing only one of the specimens in both views.
8. To decide which model will be shown in which 3D view (#1 or #2), you need to go to `Models` module, and expand the **Display** section and find the **View** option (Refer to the `Modules` section if you need to refresh your memory). By default, all models are shown in all views, and since they overlap, you are only seeing one of them. Set the Clone to view #2, and the original to view #1. If you set it correctly, you should have something similar to the view above.
9. Now switch to the **Transform Hierarchy** of the `Data` module