-
Notifications
You must be signed in to change notification settings - Fork 1
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
Get empty result #3
Comments
I have found the key to the problem and recommend that you use |
Hi 98zhenyu, sorry for the late reply. I'm gonna implement what you say, and get back to you. Best, |
Hi @98zhenyu, I've made changes implementing what you've mentioned, could you try out wether the issue is fixed? |
You still have two problems with your code. First, you need to set |
Hi I had initially tried what you comment, since it's the logical way, but it generates empty masks in my case. Furthermore, on lines 91 to 100, when I load the nifti file again to rotate it, I set the origin to Best, |
The situation you mentioned is very interesting. Logically, if you create stl and |
Hi Thanks for your reply. The thing is, I have no idea how my stl files are generated, since I don't do it. What I'm gathering is that, there is something in my stl file generation that messes up the conversion process which, as you say, should be pretty straightforward, just matching the reference nifti file properties. Since it's pretty clear that it's my use case that is weird here, I'll implement a flag to activate the weird behavior, and leave the default code as you suggest. Please, since I'm a novice at coding, if you could help me validate that the behavior as you've been doing until now, I would greatly appreciate it. I'll implement what I'm talking about ASAP. Best, |
HI @98zhenyu , I think I've implemented the changes that you have pointed out in the last two commits, but thank you for your suggestions. Best, |
Nice work! But when I try to use your
_main_.py
to convert my .stl file to .nii,the result .nii is all empty. Could you help me see what the problem is? I have sent the corresponding documents to your email, I hope you can try it in your busy schedule.The text was updated successfully, but these errors were encountered: