<span style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;">I have made this change InputImageType::Pointer image_norm = InputImageType::New();</span>, but now my program seems to get in the loop but cannot get out of this loop. What I am doing wrong?<br>
<br><div class="gmail_quote">2011/6/16 robert tamburo <span dir="ltr"><<a href="mailto:robert.tamburo@gmail.com">robert.tamburo@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Change <div><span style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;"><br></span></div><div><span style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;">InputImageType::Pointer image_norm; </span></div>
<div><span style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;"><br></span></div><div><span style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;">to </span></div>
<div><span style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;"><br></span></div><div><span style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;">InputImageType::Pointer image_norm = InputImageType::New();</span><div>
<div></div><div class="h5"><br>
<br><div class="gmail_quote">On Wed, Jun 15, 2011 at 9:03 PM, john smith <span dir="ltr"><<a href="mailto:mkitkinsightuser@gmail.com" target="_blank">mkitkinsightuser@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
size_x,size_y,size_z are global variables of my program.I run the above code with a mouse press event of Qt and is included in a mouse press function.Also,<br><br> typedef float InputPixelType;<br> const unsigned int Dimension = 3;<br>
typedef itk::Image< InputPixelType, Dimension > InputImageType;<br><br>where<br>size_x=137<br>size_y=167<br>size_z=139<br><br><div class="gmail_quote"><div><div></div><div>2011/6/16 David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span><br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div><div><div></div><div><div class="gmail_quote">On Wed, Jun 15, 2011 at 7:48 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="gmail_quote"><div>On Wed, Jun 15, 2011 at 7:39 PM, john smith <span dir="ltr"><<a href="mailto:mkitkinsightuser@gmail.com" target="_blank">mkitkinsightuser@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Well I have fixed the copy paste bug but still I get an exception.I have done the same think using the iterator, but still I want to solve the problem in that way if somebody could help me. When I debug my program the breakpoint is stucked to this point of itkImage.h<br>
<br> void SetRegions(RegionType region)<br> {<br> <span style="background-color: rgb(255, 255, 102);"> this->SetLargestPossibleRegion(region);</span><br> this->SetBufferedRegion(region);<br> this->SetRequestedRegion(region);<br>
};<br><br>I hope someone could help</blockquote></div></div></blockquote><div><br></div>With things this small, I suggest posting compilable examples. What is size_x, size_y, etc?</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">David </div><br>
</div></div><br></div></div><div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></div></blockquote></div><br><div style="padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;">
</div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>