<div>&nbsp;Hi, all<br><br>&nbsp;&nbsp;&nbsp;&nbsp; I am using the ResampleImageFilter to get an oblique slice from the 3D volume data. I use the &nbsp; <br></div><div>&nbsp; &nbsp; <br>&nbsp; &nbsp;&nbsp; <font color="#000080">ResampleImageFilter-&gt;SetOutputOrigin(origin);</font><br>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#000080"> ResampleImageFilter-&gt;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>&nbsp;<br>&nbsp;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>