<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi,<br><br>I have an 3D image and use the following method to compute the center of this image. <br><br>ImageType::IndexType index = image-&gt;GetLargestPossibleRegion()-&gt;GetIndex();<br>for(unsigned int i=0;i&lt;3; i++)<br>{<br>&nbsp;&nbsp; index[i] += image-&gt;GetLargestPossibleRegion()-&gt;GetSize()/2;<br>}<br><br>ImageType::PointType center;<br>image-&gt;TransformIndexToPhysicalPoint(index, center);<br><br>Can this method get correct center of image?<br><br>Thanks!<br><br>Y.Q<br>                                               <br /><hr />Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_1' target='_new'>Learn More.</a></body>
</html>