Hi,<br>
<span></span><br>
I used the <span><font color="#0000ff" face="Arial" size="2">UpdateLargestPossibleRegion() :<br>
<br>
connector->SetInput(this->GetDocument()->m_Imagen);<br>
try<br>
{<br>
connector->GetExporter()->UpdateLargestPossibleRegion();
<br>
connector->GetExporter()->Update();<br>
connector->Update();<br>
}<br>
catch( itk::ExceptionObject & err )<br>
{<br>
MessageBox(err.what(),"Alerta",MB_ICONERROR);<br>
return; <br>
};<br>
m_imagen=connector->GetOutput();<br>
<br>
but dont appera anything y the renderwindow.<br>
<br>
Can You help me?<br>
</font></span><br><div><span class="gmail_quote">2005/10/24, Miller, James V (Research) <<a href="mailto:millerjv@crd.ge.com">millerjv@crd.ge.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span><font color="#0000ff" face="Arial" size="2">You
can destroy a smart pointer by setting it to zero. </font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">ptr =
0; // releases the previous object.</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">The
exception you are getting is probably related to the size of the second image
being marketedly different from the size of the first image. The pipeline caches
information about the sizes of the data it is operating on.</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">When
loading new data into an existing pipeline (one that has already executed on
other data), it is best to call UpdateLargestPossibleRegion() instead of calling
Update() on the pipeline. This forces the pipeline to renogiate the cached
image sizes.</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">Jim</font></span></div><div><span class="e" id="q_10722fa52e9f642d_1">
<blockquote>
<div align="left" dir="ltr"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b>
insight-users-bounces+millerjv=<a href="mailto:crd.ge.com@itk.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">crd.ge.com@itk.org</a>
[mailto:<a href="mailto:insight-users-bounces+millerjv=crd.ge.com@itk.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">insight-users-bounces+millerjv=crd.ge.com@itk.org</a>]<b>On Behalf Of
</b>Diego Parada<br><b>Sent:</b> Friday, October 21, 2005 9:10
PM<br><b>To:</b> Luis Ibanez; ITKHelp<br><b>Subject:</b> [Insight-users] Smart
pointer destruction<br><br></font></div>Hi,<br><br>I have a problem with a
itkImageToVTKimageFilter:<br>My application is an vc SDI and when i open an
set image run fine, but i open another set image after apears an excetion
about the dimmesion of the image<br>The exporter of connector is a smart
pointer How Ican Destroy this pointer?<br><br clear="all"><br>-- <br>Diego
Armando Parada Cuervo<br>Estudiante de Ingeniería de Sistemas y
Computación<br>Universidad Pedagógica y Tecnológica de Colombia
</blockquote>
</span></div></blockquote></div><br><br clear="all"><br>-- <br>Diego Armando Parada Cuervo<br>Estudiante de Ingeniería de Sistemas y Computación<br>Universidad Pedagógica y Tecnológica de Colombia