No subject


Sun Oct 26 02:42:03 EDT 2008


<br>
Code/Algorithms/itkBayesianClassifierImageFilter.txx- &nbsp;this-&gt;GetOutput()-&gt;SetRegions( membershipImage-&gt;GetBufferedRegion() );<br>
Code/Algorithms/itkBayesianClassifierImageFilter.txx: &nbsp;this-&gt;GetOutput()-&gt;SetSpacing( membershipImage-&gt;GetSpacing() );<br>
Code/Algorithms/itkBayesianClassifierImageFilter.txx- &nbsp;this-&gt;GetOutput()-&gt;SetOrigin( &nbsp;membershipImage-&gt;GetOrigin() );<br>
Code/Algorithms/itkBayesianClassifierImageFilter.txx- &nbsp;this-&gt;GetOutput()-&gt;Allocate();<br>
<br>
NOTICE: &nbsp;The output of this filter does not set the Direction!!!!<br>
this-&gt;GetOutput()-&gt;SetDirection( &nbsp;membershipImage-&gt;GetDirection() );<br>
=======================================================<br>
<br>
Unfortunately this seems like a very common problem throughout ITK. &nbsp;&nbsp;It is my assumption that most filters that: a) take input image, b) do something to the intensity values, c) generate and output image; will behave in such a way that the output image has the same origin, spacing, size, AND direction as the input image. &nbsp;Filters &nbsp;that: a)take an input image, b) take parameters for desired output physical space defintion, c) generate the new output image; must have options for setting Spacing, Origin, AND Direction. <br>

<br>
Experimental build: <a href="http://www.cdash.org/CDash/buildSummary.php?buildid=210257" target="_blank">http://www.cdash.org/CDash/buildSummary.php?buildid=210257</a><br>
<br>
I hope to have the code committed and bugs reported in about 1 hour.<br>
<br>
Hans<br>
-- <br>
Hans J. Johnson, Ph.D.<br>
</div><a href="http://Hans-johnson@uiowa.edu" target="_blank">Hans-johnson at uiowa.edu</a> &lt;<a href="http://Hans-johnson@uiowa.edu" target="_blank">http://Hans-johnson@uiowa.edu</a>&gt; <br><div class="Ih2E3d">
<br>
278 GH<br>
The University of Iowa<br>
Iowa City, IA 52241<br>
(319) 353 8587<br>
<br>
</div></span></font><div class="Ih2E3d"><font color="#808080"><font size="2"><font face="Lucida Console"><span style="font-size: 10pt;">Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. &nbsp;If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. &nbsp;Please reply to the sender that you have received the message in error, then delete it. &nbsp;Thank you.<br>

</span></font></font></font><font face="Lucida Console"><span style="font-size: 11pt;"><br>
</span></font><span style="font-size: 11pt;"><font face="Calibri, Verdana, Helvetica, Arial"><br>
_______________________________________________<br>
Insight-developers mailing list<br>
<a href="http://Insight-developers@itk.org" target="_blank">Insight-developers at itk.org</a><br>
<a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
<br>
</font></span></div></blockquote><div class="Ih2E3d"><span style="font-size: 11pt;"><font face="Calibri, Verdana, Helvetica, Arial"><br>
<br>
<br>
-- <br>
Stephen R. Aylward, Ph.D.<br>
Chief Medical Scientist<br>
Kitware, Inc. - North Carolina Office<br>
<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>
(518) 371-3971 x300<br>
<br>
</font></span>
</div></div>


</blockquote></div><br><br clear="all"><br>-- <br>Stephen R. Aylward, Ph.D.<br>Chief Medical Scientist<br>Kitware, Inc. - North Carolina Office<br><a href="http://www.kitware.com">http://www.kitware.com</a><br>(518) 371-3971 x300<br>


------=_Part_31749_28555753.1226075907851--


More information about the Insight-developers mailing list