Hi Kevin,<br> thx for reply<br> i tried the filter->Modified too but it doesen't refresh it.<br> I'm using a pipeline of filter:<br> <br> <span style="font-style: italic; font-weight: bold;"> m_Hx = GaussianFilterType::New();</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_Hy = GaussianFilterType::New();</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_Hx->SetDirection( 0 );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_Hy->SetDirection( 1 );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight:
bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H1x = GaussianFilterType::New();</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H1x->SetDirection( 0 );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H1x->SetOrder( GaussianFilterType::FirstOrder );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;">
</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H1xy = GaussianFilterType::New();</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H1xy->SetDirection( 1 );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H1xy->SetOrder( GaussianFilterType::FirstOrder );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H2x = GaussianFilterType::New();</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H2y = GaussianFilterType::New();</span><br
style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H2x->SetDirection( 0 );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H2y->SetDirection( 1 );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H2x->SetOrder( GaussianFilterType::SecondOrder );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H2y->SetOrder( GaussianFilterType::SecondOrder );</span><br style="font-style: italic; font-weight: bold;">
<span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_Hx->SetInputImage( m_DiasstoledImage );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_Hy->SetInputImage( m_DiasstoledImage );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H1x->SetInputImage( m_Hy->GetOutput() );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight:
bold;"> m_H2x->SetInputImage( m_Hy->GetOutput() );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H2y->SetInputImage( m_Hx->GetOutput() );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_H1xy->SetInputImage( m_H1x->GetOutput() );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_Eigen = EigenFilterType::New();</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;">
</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_Eigen->SetInput1( m_H2x->GetOutput() );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_Eigen->SetInput2( m_H1xy->GetOutput() );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_Eigen->SetInput3( m_H2y->GetOutput() );</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic;"><span style="font-weight: bold;"> SetSigma();</span><br> <br> </span>and this is where i apply the Eigen Filter (On volume):<br> <br> <span style="font-style: italic; font-weight: bold;">void</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;">MyAppBase </span><br style="font-style: italic;
font-weight: bold;"> <span style="font-style: italic; font-weight: bold;">::RunGaussian()</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;">{</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;">SetSigma();</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;">this->ShowStatus("Application du filtre Gaussien...");</span><br style="font-style: italic; font-weight: bold;"> <br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;">for(k=0; k<m_inputimagesize[2]; k++)</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;">{</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> pixelIndex[2]=k;</span><br style="font-style: italic;
font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> for(j=0; j<m_inputimagesize[1]; j++)</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> { m_diasstoledimageindex[1]=j;</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> pixelIndex[1]=j;</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;">
for(i=0; i<m_inputimagesize[0]; i++)</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> {</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_diasstoledimageindex[0]=i;</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> pixelIndex[0]=i;</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> pixelValue = m_ImageReader->GetOutput()->GetPixel( pixelIndex );//à partir de l'image originale</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;">
//pixelValue = m_OutputImage->GetPixel( pixelIndex );//à partir de l'image segmentée</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_DiasstoledImage->SetPixel(m_diasstoledimageindex,pixelValue);</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> }</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> }</span><br style="font-style: italic; font-weight: bold;"> <br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> <span style="text-decoration: underline; color: rgb(255, 64, 64);"> m_Eigen->Update();</span></span><br style="font-style: italic; font-weight: bold; text-decoration:
underline; color: rgb(255, 64, 64);"> <span style="font-style: italic; font-weight: bold; text-decoration: underline; color: rgb(255, 64, 64);"> m_Eigen->Modified();</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_outputvolumeindex[2]=k;</span><br style="font-style: italic; font-weight: bold;"> <br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> for(j=0; j<m_inputimagesize[1]; j++)</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> { </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_diasstoledimageindex[1]=j;</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight:
bold;"> m_outputvolumeindex[1]=j;</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> for(i=0; i<m_inputimagesize[0]; i++)</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> { </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_diasstoledimageindex[0]=i;</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_outputvolumeindex[0]=i;</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;">
pixelValue = m_Eigen->GetOutput()->GetPixel( m_diasstoledimageindex);//à partir de l'image en diasstole filtrée</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> m_FiltredVolume->SetPixel(m_outputvolumeindex,pixelValue);</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> </span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> }</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> }</span><br style="font-style: italic; font-weight: bold;"> <br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;">}</span><br style="font-style: italic; font-weight:
bold;"> <br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;"> this->ShowStatus("Application du filtre terminée");</span><br style="font-style: italic; font-weight: bold;"> <span style="font-style: italic; font-weight: bold;">}</span><br style="font-style: italic; font-weight: bold;"> <br> <span style="font-style: italic;"></span>when i visualize the volume, all slices are the same, the first slice isuued from the EigenFilter, so i think the Eigen Filter is not refreshing!<br> could any one help me ?<br> thx for your time,<br> Regards.<br> <br><b><i>"Kevin H. Hobbs" <kevin.hobbs.1@ohiou.edu></i></b> a écrit :<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Wed, 2006-03-15 at 18:12 +0100, charfeddine amir wrote:<br>> Hi all<br>> plz tell me how to refresh a filter?<br>> i try the Update() method , but it refresh only the first
time, and<br>> keep the same data after,<br>> thx for reply,<br>> Regards.<br>> <br>> <br>filter->Modified();<br></blockquote><br><p>
                <hr size=1> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.beta.messenger.yahoo.com">Téléchargez</a> la version beta.