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>
<a href="http://Hans-johnson@uiowa.edu" target="_blank">Hans-johnson at uiowa.edu</a><br>
<br>
278 GH<br>
The University of Iowa<br>
Iowa City, IA 52241<br>
(319) 353 8587<br>
</span></font>
</font></p>
<p><font size="1" color="#808080" face="Lucida Console">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.</font></p><font face="Lucida Console">
<div><font face="Lucida Console"></font></div></font></div>



<br>_______________________________________________<br>
Insight-developers mailing list<br>
<a href="mailto:Insight-developers at itk.org">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></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_23045_6452998.1226074416864--


More information about the Insight-developers mailing list