Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The output STL file is in the shape of a box #19

Open
vsriaditya opened this issue Jan 16, 2021 · 3 comments
Open

The output STL file is in the shape of a box #19

vsriaditya opened this issue Jan 16, 2021 · 3 comments

Comments

@vsriaditya
Copy link

Hi!

I was able to successfully convert the dicom files to a 3d image (.stl) and I tried 2 datasets and I am getting a cube in the output STL file?

image
image

Why do you think this might be the case? And how can I fix this? Could this be because the dataset itself had a square outline?

Thanks in advance!

@dave3d
Copy link
Owner

dave3d commented Feb 4, 2021

Can you share a data set with me? What command-line settings are you using? It's probably extracting a surface at the extents of the image box. Are you using the tissue type flag with bone setting? You could try the '-I' options with an exact isovalue. The tissue type option makes assumptions about the image, which might not apply to yours.

@vsriaditya
Copy link
Author

@dave3d Here is the drive link to the dataset - https://drive.google.com/drive/folders/12QLTYq5B_x7CVW9xV4qh0D_oPd0IftrC?usp=sharing

Also, I tried the other bone option you had mentioned and I still got a very similar output with a cubical box outline. Please check the image below.

image

I tried the other parameters and the code isn't even running. Do you have a dataset which would work for sure? Also, is there a way I can personally get in touch with you? Me and my team are trying to work on a project and we are still students who do not understand most of this code. I was wondering if you'd be willing to help us :)

Thanks

@dave3d
Copy link
Owner

dave3d commented Feb 8, 2021

I put in a patch that should fix the issue. The script pads the volume, and I was using 0 for the pad value, when it should be using the minimum pixel value.

Here's the result I get for your DICOM:
Screen Shot 2021-02-08 at 10 43 21 AM

The '-t bone' didn't work well, so I used an isovalue of 250.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants