Strange conversion between planer contours to binary labelmap

Hi,all.
I’m troubled with converting planer contour (master) into binary lebelmap.
Finally, I want to do segment registration that reflected patient’s body shrink.
So, I make new segmentation that reproduced body shrink using by shrink function in segment editor.
When use the function, I have to convert master into binary lebelmap.
image

But, some segmaentations can’t be converted accurately like a uploaded pictures.
Untitled

Could you tell me reasons for that thing and solutions.

It looks like your input contours are messed up, but of course there is also a chance that Slicer’s contour interpolation method can be improved. What software did you use to create the contours? Can you share the DICOM RTSTRUCT file (upload somewhere and post the link here)?

Thanks for comment, Dr.lassoan.
The data what I used is Kanazawa University’s registration-based database.
So, the data isn’t created by me.
The open database explained that contouring data is manually segmented by radiation oncologist and software used only mentions MIM.
I can send the URLs about the data, but probably you can’t view the data because the data only available in Japan and used Japan IP addres.
If you could use the database, please continue to help me.
database link : https://takemuralab.net/dirdb2/
paper about database : https://www.jstage.jst.go.jp/article/jjrt/76/5/76_2020_JSRT_76.5.500/_pdf
patient data : H&N No.6 PLAN1 in the database

I could not register. You can upload a sample data set to somewhere (dropbox, onedrive, google drive, etc.) and post the link here.

Thanks for trying.
I’ll upload in onedrive.
But my organization limit the access.
If it’s not a problem, could you tell me mail addres used in onedrive to message.
I’ll let you available to share.

You can send the download link to me and @Sunderlandkyl (who will most likely to the actual investigation) as private message. You can send a private message to someone by clicking on the username and then clicking on the “Message” button.

@sotarad I’ll investigate at the issue once you are able to send the dataset.

You could also try the workaround in this post: Retrieving statistics from RTSTRUCT and scalar volume - binary labelmap representation computation is very slow - #5 by Sunderlandkyl.

Thank for give me an advice!
I tried to make CTV segmentation to shrink after create ribbon model, but I can’t do that good.
Strange line disappeared, but shrinking segmentation couldn’t be seen shrunk from master data.
Is my data set bad ??

I’ve taken a look at the dataset, and I don’t think that it is bad.

I don’t see any major issues with the conversion from planar contours to closed surfaces, except that the contours are quite dense. Due to the density, triangles in the mesh are quite long and thin, which may be causing issues in the surface to labelmap conversion.

Did you make the binary labelmap into the master representation after converting from ribbon model?

I did that again, so had successfully converted binary lebelmap exactly.
Thanks for giving advices to me!!