<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div style="" class=""><span style="" class="">Some additional info I found:</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal"><br style="" class=""><span style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal"><span style="" class="">When I use SetInputConnection(), I see only one object being destructed as well (like with using SetInputData w/o RemoveAllInputs()).</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica
 Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal"><span style="" class="">However the memory usage with SetInputConnection() is 378Mb as opposed to 430Mb with SetInputData(): the difference is about 50Mb (the size of the tiff image).</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal"><br style="" class=""><span style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal"><span style="" class="">As I said in the earlier email I sent today, I am loading 2 images into 2 different </span><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">ProcessorClass
 objects, or at least that's what I think. The images are similar and come from the same file, but the reader (which is destroyed by vtkSmartPointer when it gets out of scope?) cannot be that smart to realize it can tell the </span></span></span></span><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">ProcessorClass objects to share the image, can it?</span></span></span></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal"><br><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""></span></span></span></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal"><span
 class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">Maarten<br></span></span></span></span></div><div style="display: block;" class="yahoo_quoted"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt"> <div style="" class="" dir="ltr"> <font style="" class="" face="Arial" size="2"> On , Maarten Beek <beekmaarten@yahoo.com> wrote:<br style="" class=""> </font> </div>  <div style="" class=""><div style="" class="" id="yiv7349067514"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt">I see (only reporting lines with reference to ReferenceCount):<br class="" style="" clear="none"><br
 class="" style="" clear="none">-> activate()<br class="" style="" clear="none">vtkImageData (00000000070808D0):UnRegistered by vtkInformation(...), ReferenceCount = 3<br class="" style="" clear="none"><br class="" style="" clear="none">vtkImageData (00000000070ADA70):UnRegistered by vtkInformation(...), ReferenceCount = 3<br class="" style="" clear="none"><br class="" style="" clear="none">->deactivate() (without RemoveAllInputs() call)<br class="" style="" clear="none">vtkImageData (00000000070ADA70):UnRegistered by vtkTrivialProducer (...), ReferenceCount = 2<br class="" style="" clear="none"><br class="" style="" clear="none">vtkImageData (00000000070ADA70):UnRegistered by vtkInformation (...), ReferenceCount = 1<br class="" style="" clear="none"><br class="" style="" clear="none">vtkImageData (00000000070ADA70):Registered by
 vtkTrivialProducer (...), ReferenceCount = 2<br class="" style="" clear="none"><br class="" style="" clear="none">vtkImageData (00000000070ADA70):UnRegistered by vtkGarbageCollectorImpl (...), ReferenceCount = 0<br class="" style="" clear="none"><div class="" style=""><br class="" style="" clear="none"><span class="" style=""></span></div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">vtkObject (00000000070ADA70): Destructing!</div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal"><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
 sans-serif;background-color:transparent;font-style:normal"><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">-> activate()<br class="" style="" clear="none">vtkImageData (0000000006FA15D0):UnRegistered by vtkInformation(...), ReferenceCount = 3<br class="" style="" clear="none"><br class="" style="" clear="none">vtkImageData (0000000006FB0180):UnRegistered by vtkInformation(...), ReferenceCount = 3</div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal"><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
 sans-serif;background-color:transparent;font-style:normal">->deactivate() (with RemoveAllInputs() call)<br class="" style="" clear="none">vtkImageData (0000000006FA15D0):UnRegistered by vtkTrivialProducer (...), ReferenceCount = 2<br class="" style="" clear="none"><br class="" style="" clear="none">vtkImageData (0000000006FA15D0):UnRegistered by vtkInformation (...), ReferenceCount = 1<br class="" style="" clear="none"><br class="" style="" clear="none">vtkImageData (0000000006FA15D0):Registered by vtkGarbageCollectorImpl (...), ReferenceCount = 2</div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal"><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
 sans-serif;background-color:transparent;font-style:normal">vtkImageData (0000000006FA15D0):UnRegistered by vtkGarbageCollectorImpl (...), ReferenceCount = 0</div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal"><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">vtkObject (0000000006FA15D0): Destructing!</div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal"><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue,
 Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">vtkImageData (0000000006FB0180):UnRegistered by vtkTrivialProducer (...), ReferenceCount = 2<br class="" style="" clear="none"><br class="" style="" clear="none">vtkImageData
 (0000000006FB0180):UnRegistered by vtkInformation (...), ReferenceCount = 1<br class="" style="" clear="none"><br class="" style="" clear="none">vtkImageData (0000000006FB0180):Registered by vtkGarbageCollectorImpl (...), ReferenceCount = 2</div><div class="" style=""><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">vtkImageData (0000000006FB0180):UnRegistered by vtkGarbageCollectorImpl (...), ReferenceCount = 0</div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal"><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,
 sans-serif;background-color:transparent;font-style:normal">vtkObject (0000000006FB0180): Destructing!</div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal"><br class="" style="" clear="none"><span class="" style=""></span></div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal"><br class="" style="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">It makes sense in my code that I create 2 copies of vtkImageData, loaded into different <span class="" style=""><span class="" style=""><span class="" style=""><span class=""
 style="">ProcessorClass objects, but I don't understand
 why the first copy doesn't get destructed when I am not using </span></span></span></span><br class="" style="" clear="none">RemoveAllInputs()</div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal"><br style="" class="" clear="none"></div><div class="" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal">Maarten<br style="" class="" clear="none"></div><div style="" class="" id="yiv7349067514yqt29883"><div class="" style="display:block"> <div class="" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"> <div class="" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"> <div class=""
 dir="ltr" style=""> <font class="" style="" face="Arial" size="2"> On Tuesday, April 29, 2014
 10:39:24 AM, Berk Geveci <berk.geveci@kitware.com> wrote:<br class="" style="" clear="none"> </font> </div>  <div class="" style=""><div class="" id="yiv7349067514" style=""><div class="" style=""><div class="" dir="ltr" style="">Hmmm. This is fishy. I wonder if there is a leak somewhere in the new code. Can you try something for me? Add a reader->GetOutput()->DebugOn() right after SetInputData() and re-run. Do you see the object reference count go to 0 in deactivate?<div class="" style="">

<br class="" style="" clear="none"></div><div class="" style="">-berk</div></div><div class="" style=""><br class="" style="" clear="none"><br class="" style="" clear="none"><div class="" style="">On Mon, Apr 28, 2014 at 11:53 AM, Maarten Beek <span class="" dir="ltr" style=""><<a rel="nofollow" shape="rect" class="" style="" ymailto="mailto:beekmaarten@yahoo.com" target="_blank" href="mailto:beekmaarten@yahoo.com">beekmaarten@yahoo.com</a>></span> wrote:<br class="" style="" clear="none">

<blockquote class="" style="margin:0 0 0 .8ex"><div class="" id="yiv7349067514yqt43878" style=""><div class="" style=""><div class="" style="font-size:12pt;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><div class="" style="">

Hi all,</div><div class="" style=""><br class="" style="" clear="none"></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">I bumped into something I don't really understand:<br class="" style="" clear="none">

</div><div class="" style=""><br class="" style="" clear="none"></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">void MyClass::activate()</div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">

{</div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style="">    vtkSmartPointer<vtkTIFFReader> reader = vtkSmartPointer<vtkTIFFReader>::New();</span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style="">    <...></span></span></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">

<span class="" style=""><span class="" style=""><span class="" style="">   
 reader->Update();</span></span></span></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><br class="" style="" clear="none">

</span></span></span></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style="">    m_Processor->SetInputData(reader->GetOutput());</span><br class="" style="" clear="none">

}</div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><br class="" style="" clear="none"></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">

void MyClass::deactivate()</div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">{</div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">

<span class="" style="">    if( 0 != m_Processor )</span></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style="">    {</span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style="">    <span class="" style="">    m_Processor->RemoveAllInputs();</span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">    <span class="" style="">    m_Processor->Delete();</span></span></span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">    <span class="" style="">    m_Processor = 0;<br class="" style="" clear="none">

</span></span></span></span></span></span></span></span></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style="">    }</span></span></span><br class="" style="" clear="none">

}</div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><br class="" style="" clear="none"></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">

In the deactivate() function I do need the RemoveAllInputs() call to avoid a 50MB memory leak (100 slice 512x512 tiff). I don't need RemoveAllInputs() when I use SetInputConnection(reader->GetOutputPort()) in the activate() function.</div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><br class="" style="" clear="none"></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">

Why is the difference between SetInputData() and SetInputConnection() with regards to memory management?</div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">

<br class="" style="" clear="none"></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">m_Processor is derived from vtkImageAlgorithm and has an internal pipeline inside the RequestData(), processing the image data with vtkImageConvolve, vtkImageSobel2D, vtkImageThreshold and a few more.</span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><br class="" style="" clear="none"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""></span></span></span></span></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">

<span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">int ProcessorClass::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector* outputVector)</span></span></span></span></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">

<span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">{</span></span></span></span></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">    vtkInformation* outInfo = outputVector->GetInformationObject(0);</span></span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">    vtkImageData* output = vtkImageData::SafeDownCast(outInfo->Get(vtkdataObject::DATA_OBJECT()));</span></span></span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><br class="" style="" clear="none"></span></span></span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">    if( this->GetMTime() > this->BuildTime )</span></span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">   
 </span>{</span></span></span></span></span></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">    <span class="" style="">    this->buildPipeline();</span></span></span></span></span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">    </span></span>}</span></span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><br class="" style="" clear="none"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""></span></span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">    if( 0 != this->GetNumberOfInputConnections(0) )</span></span></span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">    {</span></span></span></span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">    <span class="" style="">    this->MergeFilter->Update();</span></span></span></span></span></span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">    <span class="" style="">    output->ShallowCopy(this->MergeFilter->GetOutput());</span></span></span></span></span></span></span></span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">   
 }</span></span></span></span></span></span></span></span></span></span></span></span></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">

<br class="" style="" clear="none"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""></span></span></span></span></span></span></span></span></span></span></span></span></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">

<span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">    return 1;</span></span></span></span></span></span></span></span></span></span></span></span></span></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">

<span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style="">}<span class="" style=""><font class="" style="" color="#888888"><br class="" style="" clear="none"></font></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>

<span class="" style=""><font class="" style="" color="#888888"></font></span><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><br class="" style="" clear="none">

</span></span></span></span></div><div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><span class="" style=""><span class="" style=""><span class="" style=""><span class="" style=""><br class="" style="" clear="none"></span></span></span></span></div>

<div class="" style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">Maarten<br class="" style="" clear="none"></div></div></div></div><br class="" style="" clear="none">_______________________________________________<br class="" style="" clear="none">


Powered by <a rel="nofollow" shape="rect" class="" style="" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br class="" style="" clear="none">
<br class="" style="" clear="none">
Visit other Kitware open-source projects at <a rel="nofollow" shape="rect" class="" style="" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br class="" style="" clear="none">
<br class="" style="" clear="none">
Please keep messages on-topic and check the VTK FAQ at: <a rel="nofollow" shape="rect" class="" style="" target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br class="" style="" clear="none">
<br class="" style="" clear="none">
Follow this link to subscribe/unsubscribe:<br class="" style="" clear="none">
<a rel="nofollow" shape="rect" class="" style="" target="_blank" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br class="" style="" clear="none">
<br class="" style="" clear="none"></blockquote></div><br class="" style="" clear="none"></div></div></div><br class="" style="" clear="none"><br class="" style="" clear="none"></div>  </div> </div>  </div></div> </div></div></div><br style="" class=""><br style="" class=""></div>  </div> </div>  </div> </div></body></html>