Hello everyone, I want to save my work as .mhd file, but when I apply Resample to Image to my input, the result is zero. Since the plane that I want to save is thin, I have tried even applying linear extrusion first and then Resample to Image, but again the result is empty. Do you what is the problem?
Use ResampleWithDataSet instead.
Thanks for your reply. What should I consider as source data array?
the volume containing the data.
I got error using ResampleWithDataSet!
please share your data
test.pvsm (1.0 MB)
please share your data, not a statefile
My data are heavy I cannot share them. I have found the problem. ResampletoImage only works when the slice is aligned with the 3axis of the reference system. For my workflow, the direction of slice is super important so I cannot do anything about it. Do you any other strategies to apply to save slices as .mhd file?
Maybe you want to use the Slice filter then ?
I have used slice filter, now I want to save the slice as image(.mhd)
This is not a great solution, but if you know the orientation of the plane you want to resample on, perhaps you could use the Transform
filter to rotate the data to be parallel with the x-y plane.
If you follow this approach, you will probably need to do the linear extrusion you mentioned earlier.