-
Notifications
You must be signed in to change notification settings - Fork 13
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
How to use ITKMorphologicalContourInterpolation with two slices #118
Comments
I already answered it here:
|
I think so, but I dont know what functions or class can I use to code about inserting the slices as the first and last. |
@dzenanz ,
![I40_2](https://private-user-images.githubusercontent.com/67948065/309615372-604f25f1-62e8-4e1e-890c-148d72f00a0b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMDY4MzMsIm5iZiI6MTczOTAwNjUzMywicGF0aCI6Ii82Nzk0ODA2NS8zMDk2MTUzNzItNjA0ZjI1ZjEtNjJlOC00ZTFlLTg5MGMtMTQ4ZDcyZjAwYTBiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA5MjIxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZjMDZkMGVhMGUxY2ViNDgwNzYzZTczNTFjMDFiM2M4MmZiM2NlNmY0M2U5NWMzZTllNGI5YjRlMmFkODRjOWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Tv7hJTcCLWSyK0jTE0NzlBnQ9WNjomMKkYjn2BKcmSI)
I am sorry to bother you, may I seek expertise on this matter?
Now I have some segmented slices, the type of them is vtkSmartPointer< vtkImageData >
such as:
For example, I have two slices in this type, named image1 and image2.Now I want to make image1 as the first slices and image2 as the last slices, put them into ITKMorphologicalContourInterpolation. But the MCI filter requires the type of "itk::Image< unsigned char, 3 >".
How can I transform these two "vtkSmartPointer" images to "itk::Image< unsigned char, 3 >", what functions or class can I use?
Thanks for your Suggestions two months before, I had posted this question on the forum,but I haven't heard back yet. If its not too much trouble, would you mind sharing your thoughts on this issue?
On behalf of my teachers and schoolmates, I sincerely appreciate your help.
The text was updated successfully, but these errors were encountered: