"CTGR file modified after being imported into SV"

Provides a system for patient-specific cardiovascular modeling and simulation.
POST REPLY
User avatar
Adel Idir
Posts: 6
Joined: Sun Feb 04, 2024 3:51 pm

"CTGR file modified after being imported into SV"

Post by Adel Idir » Tue Apr 16, 2024 2:12 am

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
coordinatesdiff.png (164.57 KiB) Viewed 3144 times
Best regards.
Attachments
leftcommoncarotidartery ctgr.zip
(56.97 KiB) Downloaded 184 times

User avatar
David Parker
Posts: 1615
Joined: Tue Aug 23, 2005 2:43 pm

Re: "CTGR file modified after being imported into SV"

Post by David Parker » Tue Apr 16, 2024 10:41 am

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

User avatar
Adel Idir
Posts: 6
Joined: Sun Feb 04, 2024 3:51 pm

Re: "CTGR file modified after being imported into SV"

Post by Adel Idir » Wed Apr 17, 2024 1:16 am

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
Capture 2.png (79.86 KiB) Viewed 3072 times
Capture .png
Capture .png (84 KiB) Viewed 3072 times
capture 3.png
capture 3.png (76.7 KiB) Viewed 3072 times
Best regards.

User avatar
David Parker
Posts: 1615
Joined: Tue Aug 23, 2005 2:43 pm

Re: "CTGR file modified after being imported into SV"

Post by David Parker » Wed Apr 17, 2024 12:44 pm

Hello,

You will need to upload your .pth file so I can reproduce what you are seeing.

Cheers,
Dave

User avatar
Adel Idir
Posts: 6
Joined: Sun Feb 04, 2024 3:51 pm

Re: "CTGR file modified after being imported into SV"

Post by Adel Idir » Thu Apr 18, 2024 12:38 am

Hello, here is the pth. file so you can have a look.
Best regards.
Attachments
leftcommoncarotidartery_path.zip
(52.11 KiB) Downloaded 189 times

User avatar
David Parker
Posts: 1615
Joined: Tue Aug 23, 2005 2:43 pm

Re: "CTGR file modified after being imported into SV"

Post by David Parker » Thu Apr 18, 2024 11:42 am

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

User avatar
Adel Idir
Posts: 6
Joined: Sun Feb 04, 2024 3:51 pm

Re: "CTGR file modified after being imported into SV"

Post by Adel Idir » Mon May 06, 2024 2:03 am

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.

User avatar
David Parker
Posts: 1615
Joined: Tue Aug 23, 2005 2:43 pm

Re: "CTGR file modified after being imported into SV"

Post by David Parker » Mon May 06, 2024 12:49 pm

Hello,

Thank you for sharing your solution!

Cheers,
Dave

POST REPLY