<div> Hi, all<br><br> I am using the ResampleImageFilter to get an oblique slice from the 3D volume data. I use the <br></div><div> <br> <font color="#000080">ResampleImageFilter->SetOutputOrigin(origin);</font><br> <font color="#000080"> ResampleImageFilter->SetOutputDirection(direction);</font> <br><br>to set the direction of the desired slice, the 3*3 direction is the unit vector of x,y,z direction.<br></div><div> <br> Would this be right to get an accurate oblique slice?<br><br>Also, I feel a litter confused about the outputspacing. <font color="#0000f0">Should I set the spacing information of the input image as the outputspacing or use the spacing along the desired new x,y,z direction? </font><br>for example, the desired x direction is [0.8;0.6;0], then the spacing[0] is set xspacing of the input image, or <font color="#0000f0">sqrt((0.8* xspacing)^2 + (0.6* yspacing)^2)</font> ? <br><br>Looking forward to your help.<br><br><br>Thanks<br><br>Kun<br></div><br><!-- footer --><br><hr/>
<a href="http://www.yeah.net">网易邮箱10周年,技术见证辉煌</a>