<div dir="ltr"><div><span style="font-size:12.8px">It looks like an integer overflow problem.  Perhaps the data is "unsigned short" but was read as "short"?</span></div><span style="font-size:12.8px"><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Just in case the Cubic interpolation is causing overflow (since cubic interpolation has undershoots/overshoots), try linear interpolation:</span></div><div><span style="font-size:12.8px"><br></span></div>resliceFilter-></span><wbr style="font-size:12.8px"><span style="font-size:12.8px">SetSlabModeToMaximum();</span><br style="font-size:12.8px"><span style="font-size:12.8px">resliceFilter-></span><wbr style="font-size:12.8px"><span style="font-size:12.8px">SetSlabNumberOfSlices(3);</span><br style="font-size:12.8px"><span style="font-size:12.8px">resliceFilter-></span><wbr style="font-size:12.8px"><span style="font-size:12.8px">SetInterpolationModeToLinear();</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"> - David</span></div><div><span style="font-size:12.8px"><br></span><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 27, 2017 at 5:38 AM, DJQ <span dir="ltr"><<a href="mailto:836856733@qq.com" target="_blank">836856733@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">vtkSmartPointer<<wbr>vtkImageReslice> resliceFilter =<br>
vtkSmartPointer<<wbr>vtkImageReslice>::New();<br>
resliceFilter->SetInputData(m_<wbr>spVtkImageData);<br>
resliceFilter-><wbr>SetOutputSpacing(<wbr>resliceSpacing,resliceSpacing,<wbr>resliceSpacing);<br>
resliceFilter-><wbr>SetOutputSpacing(0.4,0.4,0.4);<br>
resliceFilter-><wbr>SetSlabModeToMean();<br>
resliceFilter-><wbr>SetSlabNumberOfSlices(1);<br>
resliceFilter-><wbr>SetInterpolationModeToCubic();<br>
resliceFilter->Update();<br>
<br>
m_spVtkImageData=<wbr>resliceFilter->GetOutput();<br>
<br>
I want to reslice the m_spVtkImageData to make it isotropic, as 0.4*0.4*0.4.<br>
However, when I use MIP to show this resliced image, it suggests that there<br>
must be some problems. What's wrong with that?<br>
<br>
<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/t342141/MIP.png" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/file/t342141/MIP.png</a>><br>
<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/t342141/ImageResliced.png" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/file/t342141/<wbr>ImageResliced.png</a>><br></blockquote></div></div></div></div>