<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><b><span style="font-weight: bold;"></span></b><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div>Hello,<br><br>My 2 cents of information...<br><br>I also faced the same crash today morning, and solved as below.<br><br>An update on the moving and fixed images should be called<br><br>movingImage-&gt;Update()<br>fixedImage-&gt;Update()<br><br>Before any call of resampler...&nbsp; i.e the the calls to<br><br>resample-&gt;SetInput(..)&nbsp; or resample-&gt;SetSize(..)<br><br>Thanks,<br>Sharath Venkatesha<br><br><br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new
 york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Luis Ibanez &lt;luis.ibanez@kitware.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Michael Schildt
 &lt;michael.schildt@ifn-magdeburg.de&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> itk &lt;Insight-users@itk.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, July 2, 2009 3:30:08 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Insight-users] ResampleImageFilter crashes in release mode<br></font><br><br>Hi Michael,<br><br>Thanks for running these additional tests <br>and for reporting back.<br><br><br>0) You mentioned that you found an error in the Software Guide<br>&nbsp;&nbsp;&nbsp;&nbsp; in page 28.<br><br>&nbsp;&nbsp;&nbsp;&nbsp; Could you please let us know what it was, so we can fix it ?<br>
&nbsp;&nbsp;&nbsp;&nbsp; (Thanks).<br><br><br>1) I have a less optimistic interpretation of the results from your test.<br>&nbsp;&nbsp;&nbsp; If I understand correctly from your email,<br>&nbsp;&nbsp;&nbsp; You inserted the two writers for saving the input images <br>&nbsp;&nbsp;&nbsp; before calling the resampling, and you say that this code<br>
&nbsp;&nbsp;&nbsp; crashes in Release mode, while it works on Debug.<br><br>&nbsp;&nbsp;&nbsp; I would say that this clearly indicates that something is <br>&nbsp;&nbsp;&nbsp; going wrong *before* the resampling.<br><br>&nbsp;&nbsp;&nbsp; I common cause for code to work in Debug and not in Release,<br>
&nbsp;&nbsp;&nbsp; is to have uninitialized variables.&nbsp; You may want to run your code<br>&nbsp;&nbsp;&nbsp; through a dynamic checker such ad Valgrind or Purify.<br><div class="gmail_quote"><br><br>2)&nbsp; I'm not aware of any incompatibilities between ITK and wxWidgets,<br>
&nbsp;&nbsp;&nbsp;&nbsp; and would be very surprised to learn that there is any. <br>&nbsp;&nbsp;&nbsp;&nbsp; GUI libraries should be totally independent.<br><br><br>3) Typical suspects at this point are:<br><br>&nbsp;&nbsp;&nbsp;&nbsp; - Unititialized variables<br><br>&nbsp;&nbsp;&nbsp;&nbsp; - ITK Classes that have been created in a certain scope<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and that have been destroyed by the time you get them<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to the code that performs the resampling. (e.g. check the<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pointer to Transform).&nbsp; You may have SmartPointer that<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; are pointing to classes that have been already deallocated.<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; One way of debugging this is to connect an Observer to <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the suspect objects. Upon destruction ITK classes invoke<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; an itk::DeleteEvent.<br><br><br>4)&nbsp;&nbsp; BTW: Why are you using GetPointer() in the calls:<br>
<br> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; resampler-&gt;SetTransform( transform.GetPointer() );<br>&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; resampler-&gt;SetInterpolator( interpolator.GetPointer() );<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; That shouldn't be necessary.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; It you did this in order to get around some compilation error,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; it is likely that that compilation error was flagging a fundamental<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; problem with the code.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Could you please remove the GetPointer() calls ?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; It should just be:<br><br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; resampler-&gt;SetTransform( transform );<br>

&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; resampler-&gt;SetInterpolator( interpolator );<br>
<br><br>5)&nbsp; And... another big suspect....<br><br>&nbsp;&nbsp;&nbsp;&nbsp; Looking back at your first email, you told us that the crash <br>&nbsp;&nbsp;&nbsp;&nbsp; happens in the execution of the ProcessObject update at:<br><br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( m_Source ) &nbsp; &nbsp; &nbsp;// &lt;---m_Source is valid, <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; but when i step over<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; here, it gets an invalid pointer<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This is probably because when you generate the images<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; with the import filter, you are not disconnecting them from<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the filter, so they get to the Resampling function believing<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; that they are still attached to a source filter, when in fact,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; that import filter was destroyed when reached the end <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; of the scope in the function&nbsp;&nbsp;&nbsp; <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dataInterface2itk()<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Please, at the end of that function, replace the code<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import-&gt;Update();<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; image = import-&gt;GetOutput();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; image-&gt;Update();<br>
<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; // &nbsp;cout &lt;&lt; image;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; return image;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; with<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import-&gt;Update();<br>

 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; image = import-&gt;GetOutput();<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; image-&gt;Update();<br>

<br>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; image-&gt;DisconnectPipeline(); // IMPORTANT !<br><br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; return image;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }<br>
<br><br><br>I'm suspecting that (5) is the real source of the problem.<br><br><br>&nbsp;&nbsp; Please try this and let us know what you find.<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Luis<br><br><br>----------------------------------------------------------------<br>
On Thu, Jul 2, 2009 at 2:04 PM, Michael Schildt <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:michael.schildt@ifn-magdeburg.de" target="_blank" href="mailto:michael.schildt@ifn-magdeburg.de">michael.schildt@ifn-magdeburg.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Luis,<br>
<br>
I checked the things, you mentioned:<br>
<br>
<br>
Luis Ibanez schrieb:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi Michael,<br>
<br><div class="im">
Thanks for adding the Print() statements<br>
and posting the outcome to the mailing list.<br>
<br>
The image data look ok.<br>
and so it does the filter metadata.<br>
<br>
It is good that you also added the code<br>
that you are using for generating the images.<br>
<br>
A common suspect when you using the<br>
import filter is to get wrong the ownership<br>
of the image pixel buffer.<br>
<br>
You are using<br>
<br>
&nbsp;const unsigned int numberOfPixels = diImage-&gt;getSize();<br>
&nbsp;dType* data = diImage-&gt;getData();<br>
&nbsp;import-&gt;SetImportPointer( data, numberOfPixels, false );<br>
<br>
I'll strongly suggest that you verify that the<br>
"numberOfPixels" is correct here, and also<br>
reconsider whether the flag in SetImportPointer()<br>
should be "false" or "true". <br>
</div></blockquote>
I did this intentionally after consulting documentation to save memory. I have the data sets already in memory and they are displayed correctly in the views of my wxWidgets application. So, i just borrow this memory to ITK to do the registration task, whch by the way give strange results even for registration of one replicated dataset. Afterwards datasets are further used in the program without assitance of ITK. For that reason i do not want ITK to own and release the memory. The number of byte i have verified it is 256x256x256=16777216 so it is correct too.<div class="im">
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
When set to true, the import filter will own the memory<br>
buffer, which means that it will deallocate it when the<br>
importer is destroyed.<br>
<br>
<br>
The process of importing the image is a lot more<br>
suspicious than the resampling. <br>
Please do the following:<br>
<br>
 &nbsp; &nbsp;1) Before the resampling code, instantiate two<br>
 &nbsp; &nbsp; &nbsp; &nbsp;ImageFileWriters, one for the fixed image,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;and the other one for the moving image.<br>
 &nbsp; &nbsp; &nbsp; and write the images to a fileformat for which<br>
 &nbsp; &nbsp; &nbsp; you have a trusty image viewer.<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;(you could use Slicer, VV, ParaView, SNAP...)<br>
</blockquote></div>
I have done this and included write just before resample stuff posted earlier in this thread:<br>
<br>
&nbsp;itk::ImageFileWriter&lt;FloatImage3DType&gt;::Pointer writerfixedImage;<br>
&nbsp;writerfixedImage = itk::ImageFileWriter&lt;FloatImage3DType&gt;::New();<br>
&nbsp;writerfixedImage-&gt;SetInput (fixedIm);<br>
&nbsp;writerfixedImage-&gt;SetFileName( "c:\\temp\\fixedImage.hdr" );<br>
&nbsp;writerfixedImage-&gt;Update();<br>
<br>
&nbsp;itk::ImageFileWriter&lt;FloatImage3DType&gt;::Pointer writermovingImage;<br>
&nbsp;writermovingImage = itk::ImageFileWriter&lt;FloatImage3DType&gt;::New();<br>
&nbsp;writermovingImage-&gt;SetInput (movingIm);<br>
&nbsp;writermovingImage-&gt;SetFileName( "c:\\temp\\movingImage.hdr" );<br>
&nbsp;writermovingImage-&gt;Update(); &nbsp; &nbsp; <br>
By the way, i took the exampe from the ItkSoftwareGuide-2.4.0.pdf on page 28 but it contains several error. Maybe it can be noted for a update of the guide. In Debug mode i get out the data as Analyze and it looks exactly like the original data sets. In Release mode the application crashes already at writerfixedImage-&gt;Update(); So the good point is, it does seem to be the resampler.<br>

But it gets even more confusing. I wrote a short test programm using my code to load the data, resample and save via the source above. It runs in Debug and Release mode without crash! So, i copied this small piece into my application to be executed on button press. That crashs again. I copied the piece in the MyApp::OnInit() of my wxWidgets application, it crashes too. Then, I change the application type of the test programm from console to windows program and it still runs fine in Release and Debug. So the only difference seems to be that my application is using wxWidgets, but the test programm does not. In the debugger it looks like the ITK is executed on NULL-Pointer but this makes no sense and could be due to compiler optimizations. At that point i have no idea what to test further.<br>

<br>
Are there any issues or side effects known when using ITK together with wxWidgets?<br>
<br>
With best reguards,<br>
 &nbsp; Michael Schildt<div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
 &nbsp; 2) Run the code and save the images, no need<br>
 &nbsp; &nbsp; &nbsp; &nbsp;to run the resampler.<br>
</blockquote></div>
I did so.<div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
 &nbsp; &nbsp;3) Open the images with the viewer and let us<br>
 &nbsp; &nbsp; &nbsp; &nbsp;know if they are in good shape.<br>
<br>
 &nbsp; &nbsp;4) I would expect that the images are corrupted<br>
 &nbsp; &nbsp; &nbsp; &nbsp;at this point, but we will only know for &nbsp;sure<br>
 &nbsp; &nbsp; &nbsp; &nbsp;after you run this test.<br>
</blockquote></div>
At least they look exactly the way they should do, so this doesn't seem to be the point.<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
<br>
<br>
Please let us now what you find.<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp;Thanks<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Luis<br>
<br>
<br>
<br>
----------------------------------------------------------<br></div><div><div></div><div class="h5">
On Wed, Jul 1, 2009 at 8:28 AM, Michael Schildt &lt;<a rel="nofollow" ymailto="mailto:michael.schildt@ifn-magdeburg.de" target="_blank" href="mailto:michael.schildt@ifn-magdeburg.de">michael.schildt@ifn-magdeburg.de</a> &lt;mailto:<a rel="nofollow" ymailto="mailto:michael.schildt@ifn-magdeburg.de" target="_blank" href="mailto:michael.schildt@ifn-magdeburg.de">michael.schildt@ifn-magdeburg.de</a>&gt;&gt; wrote:<br>

<br>
 &nbsp; &nbsp;Hello Luis,<br>
<br>
 &nbsp; &nbsp;thank you for your suggestions.<br>
<br>
 &nbsp; &nbsp;I inserted the Prints in my source code and here ist the output:<br>
 &nbsp; &nbsp;--------------------------- fixedIm -------------------------------<br>
 &nbsp; &nbsp;Image (00339668)<br>
 &nbsp; &nbsp; RTTI typeinfo: &nbsp; class itk::Image&lt;float,3&gt;<br>
 &nbsp; &nbsp; Reference Count: 3<br>
 &nbsp; &nbsp; Modified Time: 20<br>
 &nbsp; &nbsp; Debug: Off<br>
 &nbsp; &nbsp; Observers:<br>
 &nbsp; &nbsp; &nbsp;none<br>
 &nbsp; &nbsp; Source: (none)<br>
 &nbsp; &nbsp; Source output index: &nbsp;0<br>
 &nbsp; &nbsp; Release Data: Off<br>
 &nbsp; &nbsp; Data Released: False<br>
 &nbsp; &nbsp; Global Release Data: Off<br>
 &nbsp; &nbsp; PipelineMTime: 13<br>
 &nbsp; &nbsp; UpdateMTime: 19<br>
 &nbsp; &nbsp; LargestPossibleRegion:<br>
 &nbsp; &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp; &nbsp;Size: [256, 256, 256]<br>
 &nbsp; &nbsp; BufferedRegion:<br>
 &nbsp; &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp; &nbsp;Size: [256, 256, 256]<br>
 &nbsp; &nbsp; RequestedRegion:<br>
 &nbsp; &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp; &nbsp;Size: [256, 256, 256]<br>
 &nbsp; &nbsp; Spacing: [1, 1, 1]<br>
 &nbsp; &nbsp; Origin: [0, 0, 0]<br>
 &nbsp; &nbsp; Direction:<br>
 &nbsp; &nbsp;1 0 0<br>
 &nbsp; &nbsp;0 1 0<br>
 &nbsp; &nbsp;0 0 1<br>
<br>
 &nbsp; &nbsp; IndexToPointMatrix:<br>
 &nbsp; &nbsp; 1 0 0<br>
 &nbsp; &nbsp;0 1 0<br>
 &nbsp; &nbsp;0 0 1<br>
<br>
 &nbsp; &nbsp; PointToIndexMatrix:<br>
 &nbsp; &nbsp; 1 0 0<br>
 &nbsp; &nbsp;0 1 0<br>
 &nbsp; &nbsp;0 0 1<br>
<br>
 &nbsp; &nbsp; PixelContainer:<br>
 &nbsp; &nbsp; &nbsp;ImportImageContainer (01390EA8)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;RTTI typeinfo: &nbsp; class itk::ImportImageContainer&lt;unsigned<br>
 &nbsp; &nbsp;long,float&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Reference Count: 1<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Modified Time: 17<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Debug: Off<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Observers:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;none<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Pointer: 034B0020<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Container manages memory: false<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Size: 16777216<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Capacity: 16777216<br>
<br>
 &nbsp; &nbsp;--------------------------- movingIm ------------------------------<br>
 &nbsp; &nbsp;Image (00337178)<br>
 &nbsp; &nbsp; RTTI typeinfo: &nbsp; class itk::Image&lt;float,3&gt;<br>
 &nbsp; &nbsp; Reference Count: 4<br>
 &nbsp; &nbsp; Modified Time: 40<br>
 &nbsp; &nbsp; Debug: Off<br>
 &nbsp; &nbsp; Observers:<br>
 &nbsp; &nbsp; &nbsp;none<br>
 &nbsp; &nbsp; Source: (none)<br>
 &nbsp; &nbsp; Source output index: &nbsp;0<br>
 &nbsp; &nbsp; Release Data: Off<br>
 &nbsp; &nbsp; Data Released: False<br>
 &nbsp; &nbsp; Global Release Data: Off<br>
 &nbsp; &nbsp; PipelineMTime: 33<br>
 &nbsp; &nbsp; UpdateMTime: 39<br>
 &nbsp; &nbsp; LargestPossibleRegion:<br>
 &nbsp; &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp; &nbsp;Size: [256, 256, 256]<br>
 &nbsp; &nbsp; BufferedRegion:<br>
 &nbsp; &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp; &nbsp;Size: [256, 256, 256]<br>
 &nbsp; &nbsp; RequestedRegion:<br>
 &nbsp; &nbsp; &nbsp;Dimension: 3<br>
 &nbsp; &nbsp; &nbsp;Index: [0, 0, 0]<br>
 &nbsp; &nbsp; &nbsp;Size: [256, 256, 256]<br>
 &nbsp; &nbsp; Spacing: [1, 1, 1]<br>
 &nbsp; &nbsp; Origin: [0, 0, 0]<br>
 &nbsp; &nbsp; Direction:<br>
 &nbsp; &nbsp;1 0 0<br>
 &nbsp; &nbsp;0 1 0<br>
 &nbsp; &nbsp;0 0 1<br>
<br>
 &nbsp; &nbsp; IndexToPointMatrix:<br>
 &nbsp; &nbsp; 1 0 0<br>
 &nbsp; &nbsp;0 1 0<br>
 &nbsp; &nbsp;0 0 1<br>
<br>
 &nbsp; &nbsp; PointToIndexMatrix:<br>
 &nbsp; &nbsp; 1 0 0<br>
 &nbsp; &nbsp;0 1 0<br>
 &nbsp; &nbsp;0 0 1<br>
<br>
 &nbsp; &nbsp; PixelContainer:<br>
 &nbsp; &nbsp; &nbsp;ImportImageContainer (0033BE98)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;RTTI typeinfo: &nbsp; class itk::ImportImageContainer&lt;unsigned<br>
 &nbsp; &nbsp;long,float&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Reference Count: 1<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Modified Time: 37<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Debug: Off<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Observers:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;none<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Pointer: 074C0020<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Container manages memory: false<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Size: 16777216<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Capacity: 16777216<br>
<br>
 &nbsp; &nbsp;--------------------------- resampler -----------------------------<br>
 &nbsp; &nbsp;ResampleImageFilter (00338A08)<br>
 &nbsp; &nbsp; RTTI typeinfo: &nbsp; class itk::ResampleImageFilter&lt;class<br>
 &nbsp; &nbsp;itk::Image&lt;float,3&gt;,cla<br>
 &nbsp; &nbsp;s itk::Image&lt;float,3&gt;,double&gt;<br>
 &nbsp; &nbsp; Reference Count: 2<br>
 &nbsp; &nbsp; Modified Time: 64<br>
 &nbsp; &nbsp; Debug: Off<br>
 &nbsp; &nbsp; Observers:<br>
 &nbsp; &nbsp; &nbsp;none<br>
 &nbsp; &nbsp; Number Of Required Inputs: 1<br>
 &nbsp; &nbsp; Number Of Required Outputs: 1<br>
 &nbsp; &nbsp; Number Of Threads: 1<br>
 &nbsp; &nbsp; ReleaseDataFlag: Off<br>
 &nbsp; &nbsp; ReleaseDataBeforeUpdateFlag: Off<br>
 &nbsp; &nbsp; Input 0: (00337178)<br>
 &nbsp; &nbsp; Output 0: (00338B88)<br>
 &nbsp; &nbsp; AbortGenerateData: Off<br>
 &nbsp; &nbsp; Progress: 0<br>
 &nbsp; &nbsp; Multithreader:<br>
 &nbsp; &nbsp; &nbsp;RTTI typeinfo: &nbsp; class itk::MultiThreader<br>
 &nbsp; &nbsp; &nbsp;Reference Count: 1<br>
 &nbsp; &nbsp; &nbsp;Modified Time: 49<br>
 &nbsp; &nbsp; &nbsp;Debug: Off<br>
 &nbsp; &nbsp; &nbsp;Observers:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;none<br>
 &nbsp; &nbsp; &nbsp;Thread Count: 1<br>
 &nbsp; &nbsp; &nbsp;Global Maximum Number Of Threads: 128<br>
 &nbsp; &nbsp; &nbsp;Global Default Number Of Threads: 1<br>
 &nbsp; &nbsp; DefaultPixelValue: 0<br>
 &nbsp; &nbsp; Size: [256, 256, 256]<br>
 &nbsp; &nbsp; OutputStartIndex: [0, 0, 0]<br>
 &nbsp; &nbsp; OutputOrigin: [0, 0, 0]<br>
 &nbsp; &nbsp; OutputSpacing: [1, 1, 1]<br>
 &nbsp; &nbsp; OutputDirection: 1 0 0<br>
 &nbsp; &nbsp;0 1 0<br>
 &nbsp; &nbsp;0 0 1<br>
<br>
 &nbsp; &nbsp; Transform: 00337350<br>
 &nbsp; &nbsp; Interpolator: 00338860<br>
 &nbsp; &nbsp; UseReferenceImage: Off<br>
<br>
 &nbsp; &nbsp;I already call Update on the Images but after the Set..- commands. I'm<br>
 &nbsp; &nbsp;not sure about the order of commands to import the images to itk. Here<br>
 &nbsp; &nbsp;is my import method called to create fixedIm and movingIm, maybe this<br>
 &nbsp; &nbsp;helps to localize the problem (MRIScalarLayer is a custom class just<br>
 &nbsp; &nbsp;containing the image data and some infos):<br>
<br>
 &nbsp; &nbsp;template&lt;typename dType&gt; typename itk::Image&lt;dType,3&gt;::Pointer<br>
 &nbsp; &nbsp;dataInterface2itk(MRIScalarLayer&lt;dType&gt; *diImage)<br>
 &nbsp; &nbsp;{<br>
 &nbsp; &nbsp; typedef itk::Image&lt;dType,3&gt; Image3DType;<br>
 &nbsp; &nbsp; typename Image3DType::Pointer image = Image3DType::New();<br>
 &nbsp; &nbsp; typedef itk::ImportImageFilter&lt;dType,3&gt; ImportFilterImage3DType;<br>
 &nbsp; &nbsp; typename ImportFilterImage3DType::Pointer import =<br>
 &nbsp; &nbsp;ImportFilterImage3DType::New();<br>
 &nbsp; &nbsp; typename ImportFilterImage3DType::SizeType size;<br>
 &nbsp; &nbsp; size[0] = diImage-&gt;getSize((unsigned char)0); // size along X<br>
 &nbsp; &nbsp; size[1] = diImage-&gt;getSize((unsigned char)1); // size along Y<br>
 &nbsp; &nbsp; size[2] = diImage-&gt;getSize((unsigned char)2); // size along Z<br>
 &nbsp; &nbsp; typename ImportFilterImage3DType::IndexType start;<br>
 &nbsp; &nbsp; start.Fill( 0 );<br>
 &nbsp; &nbsp; typename ImportFilterImage3DType::RegionType region;<br>
 &nbsp; &nbsp; region.SetIndex( start );<br>
 &nbsp; &nbsp; region.SetSize( size );<br>
 &nbsp; &nbsp; import-&gt;SetRegion( region );<br>
 &nbsp; &nbsp; double spacing[ 3 ];<br>
 &nbsp; &nbsp; // hier sollte noch das gap mit beachtet werden, welches es nicht in<br>
 &nbsp; &nbsp;itk gibt<br>
 &nbsp; &nbsp; spacing[0] = diImage-&gt;getSpacing((unsigned char)0); // along X<br>
 &nbsp; &nbsp;direction<br>
 &nbsp; &nbsp; spacing[1] = diImage-&gt;getSpacing((unsigned char)1); // along Y<br>
 &nbsp; &nbsp;direction<br>
 &nbsp; &nbsp; spacing[2] = diImage-&gt;getSpacing((unsigned char)2); // along Z<br>
 &nbsp; &nbsp;direction<br>
 &nbsp; &nbsp; import-&gt;SetSpacing( spacing );<br>
 &nbsp; &nbsp; double origin[ 3 ];<br>
 &nbsp; &nbsp; origin[0] = diImage-&gt;getOrigin((unsigned char)0); // X coordinate<br>
 &nbsp; &nbsp; origin[1] = diImage-&gt;getOrigin((unsigned char)1); // Y coordinate<br>
 &nbsp; &nbsp; origin[2] = diImage-&gt;getOrigin((unsigned char)2); // Z coordinate<br>
 &nbsp; &nbsp; import-&gt;SetOrigin( origin );<br>
<br>
 &nbsp; &nbsp; const unsigned int numberOfPixels = diImage-&gt;getSize();<br>
 &nbsp; &nbsp; dType* data = diImage-&gt;getData();<br>
 &nbsp; &nbsp; import-&gt;SetImportPointer( data, numberOfPixels, false );<br>
 &nbsp; &nbsp; import-&gt;Update();<br>
 &nbsp; &nbsp; image = import-&gt;GetOutput();<br>
 &nbsp; &nbsp; image-&gt;Update();<br>
<br>
 &nbsp; &nbsp;// &nbsp;cout &lt;&lt; image;<br>
 &nbsp; &nbsp; return image;<br>
 &nbsp; &nbsp;}<br>
<br>
 &nbsp; &nbsp;Best requards,<br>
 &nbsp; &nbsp; &nbsp;Michael Schildt<br>
<br>
 &nbsp; &nbsp;Luis Ibanez schrieb:<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Hi Michael,<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;This looks like a bug in your code &nbsp; &nbsp; &nbsp;:-(<br>
<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Typical suspects are:<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;A) The fixed image is not available yet at<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;the time you call GetLargestPossibleRegion(),<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GetOrigin(), GetSpacing().<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; You should call &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fixedIm-&gt;Update()<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; before you call any of the above methods.<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;We will learn a lot about other possible causes if<br>
 &nbsp; &nbsp; &nbsp; &nbsp;you add to your code the following:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fixedIm-&gt;Print( std::cout );<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; movingIm-&gt;Print( std::cout );<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resampler-&gt;Print( std::cout );<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;before the line<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;resampler-&gt;Update();<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;and if you post the resulting output text to the<br>
 &nbsp; &nbsp; &nbsp; &nbsp;mailing list.<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Please let us know what you find.<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Thanks<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Luis<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;----------------------------------------------------------------<br>
 &nbsp; &nbsp; &nbsp; &nbsp;On Fri, Jun 26, 2009 at 6:42 AM, Michael Schildt<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a rel="nofollow" ymailto="mailto:michael.schildt@ifn-magdeburg.de" target="_blank" href="mailto:michael.schildt@ifn-magdeburg.de">michael.schildt@ifn-magdeburg.de</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a rel="nofollow" ymailto="mailto:michael.schildt@ifn-magdeburg.de" target="_blank" href="mailto:michael.schildt@ifn-magdeburg.de">michael.schildt@ifn-magdeburg.de</a>&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a rel="nofollow" ymailto="mailto:michael.schildt@ifn-magdeburg.de" target="_blank" href="mailto:michael.schildt@ifn-magdeburg.de">michael.schildt@ifn-magdeburg.de</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a rel="nofollow" ymailto="mailto:michael.schildt@ifn-magdeburg.de" target="_blank" href="mailto:michael.schildt@ifn-magdeburg.de">michael.schildt@ifn-magdeburg.de</a>&gt;&gt;&gt; wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Hello!<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I have some trouble with ResampleImageFilter. I'm not sure<br>
 &nbsp; &nbsp; &nbsp; &nbsp;if it is a<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bug in my program or in ITK. It works as expected in Debug<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; configuration<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; but crashes in Release mode. I traced to the source line in ITK<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; were it<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; appear in RelWithDebMode configuration. I attach some<br>
 &nbsp; &nbsp; &nbsp; &nbsp;information and<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source.<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Best reguards,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Michael Schildt<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; The method based on the example in the itkSoftwareGuide:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; template &lt;typename dataT, typename TrfType&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; typename itk::Image&lt;dataT,3&gt;::Pointer transformImage(typename<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; itk::Image&lt;dataT,3&gt;::Pointer fixedIm,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;typename<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; itk::Image&lt;dataT,3&gt;::Pointer movingIm,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;typename<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TrfType::ConstPointer transform)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;typedef itk::Image&lt;dataT, 3&gt; ImageType;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;typedef TrfType TransformType;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;typedef itk::LinearInterpolateImageFunction&lt;ImageType,double&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InterpolatorType;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//typedef<br>
 &nbsp; &nbsp; &nbsp; &nbsp;itk::WindowedSincInterpolateImageFunction&lt;ImageType,3&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InterpolatorType;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;typedef itk::ResampleImageFilter&lt;ImageType,ImageType&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;ResamplerType;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;typename InterpolatorType::Pointer interpolator =<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InterpolatorType::New();<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;typename ResamplerType::Pointer resampler =<br>
 &nbsp; &nbsp; &nbsp; &nbsp;ResamplerType::New();<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;resampler-&gt;SetInput( movingIm );<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;resampler-&gt;SetTransform( transform.GetPointer() );<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;resampler-&gt;SetInterpolator( interpolator.GetPointer() );<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;resampler-&gt;SetSize(<br>
 &nbsp; &nbsp; &nbsp; &nbsp;fixedIm-&gt;GetLargestPossibleRegion().GetSize() );<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;resampler-&gt;SetOutputOrigin( fixedIm-&gt;GetOrigin() );<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;resampler-&gt;SetOutputSpacing( fixedIm-&gt;GetSpacing() );<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;resampler-&gt;SetDefaultPixelValue( 0 );<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// resample the moving image<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;resampler-&gt;Update();<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return resampler-&gt;GetOutput();<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
 &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; It appears in the Update() method of the resampler. While<br>
 &nbsp; &nbsp; &nbsp; &nbsp;debugging it<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; seems like a problem in itkDataObject.cxx at line marked<br>
 &nbsp; &nbsp; &nbsp; &nbsp;with **<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; //----------------------------------------------------------------------------<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; void<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DataObject<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::UpdateOutputData()<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// If we need to update due to PipelineMTime, or the fact<br>
 &nbsp; &nbsp; &nbsp; &nbsp;that our<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// data was released, then propagate the UpdateOutputData<br>
 &nbsp; &nbsp; &nbsp; &nbsp;to the<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// if there is one.<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ( m_UpdateMTime &lt; m_PipelineMTime || m_DataReleased ||<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;this-&gt;RequestedRegionIsOutsideOfTheBufferedRegion() )<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( m_Source ) &nbsp; &nbsp; &nbsp;// &lt;---m_Source is valid, but when i<br>
 &nbsp; &nbsp; &nbsp; &nbsp;step over<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; here, it gets an invalid pointer<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ** &nbsp; &nbsp; &nbsp;m_Source-&gt;UpdateOutputData(this); &nbsp; &nbsp; &nbsp;// maybe call on<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; invalid<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pointer?<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
 &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; //----------------------------------------------------------------------------<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Stack backtrace:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BrainGUI.exe!std::_Vector_iterator&lt;unsigned<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int,std::allocator&lt;unsigned int&gt; &gt;::operator+() &nbsp;+ 0x17<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Bytes &nbsp; &nbsp;C++<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BrainGUI.exe!std::vector&lt;unsigned<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int,std::allocator&lt;unsigned int&gt; ::resize(unsigned int<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _Newsize=1, unsigned int _Val=0) &nbsp;Zeile 721 +<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0x36 Bytes &nbsp; &nbsp;C++<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BrainGUI.exe!std::vector&lt;bool,std::allocator&lt;bool&gt;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::_Insert_x(std::_Vb_const_iterator&lt;unsigned<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int,int,std::vector&lt;bool,std::allocator&lt;bool&gt; &gt; &gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;_Where=..., unsigned<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int _Count=1) &nbsp;Zeile 2312 &nbsp; &nbsp;C++<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BrainGUI.exe!std::vector&lt;bool,std::allocator&lt;bool&gt;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::_Insert_n(std::_Vb_const_iterator&lt;unsigned<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int,int,std::vector&lt;bool,std::allocator&lt;bool&gt; &gt; &gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;_Where=..., unsigned<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int _Count=1, bool _Val=false) &nbsp;Zeile 2292 &nbsp; &nbsp;C++<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BrainGUI.exe!std::vector&lt;bool,std::allocator&lt;bool&gt;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::resize(unsigned int _Newsize=1, bool _Val=false)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; Zeile 2044<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;C++<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;BrainGUI.exe!itk::ProcessObject::CacheInputReleaseDataFlags()<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Zeile 1055 &nbsp; &nbsp;C++<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;BrainGUI.exe!itk::ProcessObject::UpdateOutputData(itk::DataObject<br>
 &nbsp; &nbsp; &nbsp; &nbsp;*<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; __formal=0x02079270) &nbsp;Zeile 964 &nbsp; &nbsp;C++<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BrainGUI.exe!itk::DataObject::UpdateOutputData() &nbsp;Zeile<br>
 &nbsp; &nbsp; &nbsp; &nbsp;420 + 0x8<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Bytes &nbsp; &nbsp;C++<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; BrainGUI.exe!transformImage&lt;float,itk::VersorRigid3DTransform&lt;double&gt;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (itk::SmartPointer&lt;itk::Image&lt;float,3&gt; &gt; fixedIm={...},<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; itk::SmartPointer&lt;itk::Image&lt;float,3&gt; &gt; movingIm={...},<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; itk::SmartPointer&lt;itk::VersorRigid3DTransform&lt;double&gt; const &gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; transform={...}) &nbsp;Zeile 123 &nbsp; &nbsp;C++<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BrainGUI.exe!VersorRigid3DRegistration::doRegistration(bool<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newVolume=true, void (const double &amp;, const<br>
 &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; std::basic_string&lt;char,std::char_traits&lt;char&gt;,std::allocator&lt;char&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &amp;)*<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; progress=0x004029e1) &nbsp;Zeile 254 + 0x81 Bytes &nbsp; &nbsp;C++<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BrainGUI.exe!RegThread::Entry() &nbsp;Zeile 273 + 0xf Bytes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C++<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BrainGUI.exe!wxThreadInternal::DoThreadStart() &nbsp;+ 0xa5<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Bytes &nbsp; &nbsp;C++<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BrainGUI.exe!wxThreadInternal::WinThreadStart() &nbsp;+ 0x6a<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Bytes &nbsp; &nbsp; &nbsp; C++<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BrainGUI.exe!_callthreadstartex() &nbsp;Zeile 348 + 0x6 Bytes<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BrainGUI.exe!_threadstartex(void * ptd=0x04ef1118)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; Zeile 326 + 0x5<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Bytes &nbsp; &nbsp;C<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - Windows XP Prof SP3<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - Visual Studio 2008 Express Edition<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - ITK 3.14<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - CMake 2.6.4<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - wxWidgets 2.8.9 (wxPack Installer)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - Pentium 4<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - 2GB Ram<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _____________________________________<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a><span> &lt;<a target="_blank" href="http://www.kitware.com">http://www.kitware.com</a>&gt;</span><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a rel="nofollow" target="_blank" href="http://www.kitware.com">http://www.kitware.com</a>&gt;<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Visit other Kitware open-source projects at<br><span>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Please keep messages on-topic and check the ITK FAQ at:<br><span>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a></span><br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Follow this link to subscribe/unsubscribe:<br><span>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a target="_blank" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></span><br>
<br>
<br>
<br>
 &nbsp; &nbsp;_____________________________________<br>
 &nbsp; &nbsp;Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com">www.kitware.com</a> &lt;<a rel="nofollow" target="_blank" href="http://www.kitware.com">http://www.kitware.com</a>&gt;<br>
<br>
 &nbsp; &nbsp;Visit other Kitware open-source projects at<br>
 &nbsp; &nbsp;<a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
 &nbsp; &nbsp;Please keep messages on-topic and check the ITK FAQ at:<br>
 &nbsp; &nbsp;<a rel="nofollow" target="_blank" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
 &nbsp; &nbsp;Follow this link to subscribe/unsubscribe:<br>
 &nbsp; &nbsp;<a rel="nofollow" target="_blank" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>
<br>
</div></div></blockquote>
</blockquote></div><br>
</div></div></div><br>

      </div></div></div><br>

      </body></html>