Page 1 of 1
"CTGR file modified after being imported into SV"
Posted: Tue Apr 16, 2024 2:12 am
by adel.idir
Hi,
I'm importing a CTGR file into SimVascular, and it's altering the coordinates of the first two point IDs (0 and 1) for each control point. This alteration renders the subsequent steps impossible. I've attempted to replace the new coordinates with the original, correct ones in the CTGR file within the SV project, but SimVascular doesn't seem to recognize them. Any ideas?
![coordinatesdiff.png](./download/file.php?id=7822&sid=1976bcaac83f0f768d63737549af51e7)
- coordinatesdiff.png (164.57 KiB) Viewed 3833 times
Best regards.
Re: "CTGR file modified after being imported into SV"
Posted: Tue Apr 16, 2024 10:41 am
by davep
Hello,
I looked at the two segmentations in SV and they appear to be geometrically identical.
I seem to recall that the first two control points are not in fact used as control points, I think they are the contour center and a point on the contour, that are used to transform (e.g. scale) the contour.
Cheers,
Dave
Re: "CTGR file modified after being imported into SV"
Posted: Wed Apr 17, 2024 1:16 am
by adel.idir
Hello,
Thank you for your response.
It's indeed accurate that when we import both segmentations into SimVascular, we observe that the geometry aligns, with the first segmentation resembling the second after import. This alignment is expected since the second segmentation is essentially the first ctgr file modified by SimVascular.
However, the issue can be seen when we reslice beyond 690 (which ideally shouldn't occur). As depicted below, you'll notice that two points from each contour are positioned in illogical locations, and I don't know how to explain it.
![Capture 2.png](./download/file.php?id=7840&sid=1976bcaac83f0f768d63737549af51e7)
- Capture 2.png (79.86 KiB) Viewed 3761 times
![Capture .png](./download/file.php?id=7839&sid=1976bcaac83f0f768d63737549af51e7)
- Capture .png (84 KiB) Viewed 3761 times
![capture 3.png](./download/file.php?id=7841&sid=1976bcaac83f0f768d63737549af51e7)
- capture 3.png (76.7 KiB) Viewed 3761 times
Best regards.
Re: "CTGR file modified after being imported into SV"
Posted: Wed Apr 17, 2024 12:44 pm
by davep
Hello,
You will need to upload your .pth file so I can reproduce what you are seeing.
Cheers,
Dave
Re: "CTGR file modified after being imported into SV"
Posted: Thu Apr 18, 2024 12:38 am
by adel.idir
Hello, here is the pth. file so you can have a look.
Best regards.
Re: "CTGR file modified after being imported into SV"
Posted: Thu Apr 18, 2024 11:42 am
by davep
The path points match the segments fine.
What image data are you using? Maybe the image data is not scaled correctly.
What exactly are you trying to do here?
Cheers,
Dave
Re: "CTGR file modified after being imported into SV"
Posted: Mon May 06, 2024 2:03 am
by adel.idir
Hi,
I have found the solution to the issue: simply export all ctgr into legacy segmentation on SimVascular, then reimport them to eradicate artifacts on the contours, ff anyone wishes to import ctgr created from RTSS.
Re: "CTGR file modified after being imported into SV"
Posted: Mon May 06, 2024 12:49 pm
by davep
Hello,
Thank you for sharing your solution!
Cheers,
Dave