Re Karthik,<br> thx for your reply.<br> i changed the place of m_Eigen->Modified() before the m_Eigen->Update method<br> but nothing changed, and i still having the same pb.<br> still waiting for a rescue ;o)<br> Regards.<br><br><b><i>Karthik Krishnan <Karthik.Krishnan@kitware.com></i></b> a écrit :<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> In general there shouldn't be a reason to call Modified() in ITK <br>filters, the pipeline mechanics should take care of that. In your case, <br>you are changing the pixel values with the SetPixel( .. ) method on the <br>image. Unlike most other methods, image->SetPixel(.. ) will not change <br>the modified time of the image. (It would be very inefficient to check <br>every time if a pixel value is different from what it was and set an <br>MTime, during a SetPixel call).<br><br>So you might consider having the line m_Eigen->Modified() *before*, not
<br>after the update method.<br><br>charfeddine amir wrote:<br><br>> 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>> m_Hx = GaussianFilterType::New();<br>> m_Hy = GaussianFilterType::New();<br>> <br>> m_Hx->SetDirection( 0 );<br>> m_Hy->SetDirection( 1 );<br>> <br>> m_H1x = GaussianFilterType::New();<br>> <br>> m_H1x->SetDirection( 0 );<br>> <br>> m_H1x->SetOrder( GaussianFilterType::FirstOrder );<br>> <br>> m_H1xy = GaussianFilterType::New();<br>> m_H1xy->SetDirection( 1 );<br>> m_H1xy->SetOrder( GaussianFilterType::FirstOrder );<br>> <br>> m_H2x = GaussianFilterType::New();<br>> m_H2y = GaussianFilterType::New();<br>> <br>> m_H2x->SetDirection( 0 );<br>> m_H2y->SetDirection( 1 );<br>>
<br>> m_H2x->SetOrder( GaussianFilterType::SecondOrder );<br>> m_H2y->SetOrder( GaussianFilterType::SecondOrder );<br>> <br>> m_Hx->SetInputImage( m_DiasstoledImage );<br>> m_Hy->SetInputImage( m_DiasstoledImage );<br>> <br>> m_H1x->SetInputImage( m_Hy->GetOutput() );<br>> <br>> m_H2x->SetInputImage( m_Hy->GetOutput() );<br>> m_H2y->SetInputImage( m_Hx->GetOutput() );<br>> <br>> m_H1xy->SetInputImage( m_H1x->GetOutput() );<br>> <br>> m_Eigen = EigenFilterType::New();<br>> &nbs! p;<br>> m_Eigen->SetInput1( m_H2x->GetOutput() );<br>> m_Eigen->SetInput2( m_H1xy->GetOutput() );<br>> m_Eigen->SetInput3( m_H2y->GetOutput() );<br>> SetSigma();<br>><br>> and this is where i apply the Eigen Filter (On volume):<br>><br>> void<br>> MyAppBase<br>> ::RunGaussian()<br>> {<br>>
SetSigma();<br>> this->ShowStatus("Application du filtre Gaussien...");<br>><br>> for(k=0; k<m_inputimagesize [2="" k=""><br>> {<br>> pixelIndex[2]=k;<br>> <br>> for(j=0; j<m_inputimagesize [1="" j=""><br>> { m_diasstoledimageindex[1]=j;<br>> pixelIndex[1]=j;<br>> <br>> for(i=0; i<m_inputimagesize [0="" i=""><br>> {<br>> m_diasstoledimageindex[0]=i;<br>> pixelIndex[0]=i;<br>> pixelValue = m_ImageReader->GetOutput()->GetPixel( <br>> pixelIndex );//à partir de l'image originale<br>> &nb! sp; //pixelValue = m_OutputImage->GetPixel( pixelIndex <br>> );//à partir de l'image segmentée<br>> <br>> m_DiasstoledImage->SetPixel(m_diasstoledimageindex,pixelValue);<br>> }<br>> }<br>><br>> m_Eigen->Update();<br>> m_Eigen->Modified();<br>>
m_outputvolumeindex[2]=k;<br>><br>> for(j=0; j<m_inputimagesize [1="" j=""><br>> { <br>> m_diasstoledimageindex[1]=j;<br>> m_outputvolumeindex[1]=j;<br>> for(i=0; i<m_inputimagesize [0="" i=""><br>> { <br>> m_diasstoledimageindex[0]=i;<br>> m_outputvolumeindex[0]=i;<br>> pixelValue = m_Eigen->GetOutput()->GetPixel( <br>> m_diasstoledimageindex);//à partir de l'image en diasstole filtrée<br>> m_FiltredVolume->SetPixel(m_outputvolumeindex,pixelValue);<br>> <br>> }<br>> }<br>><br>> }<br>><br>> this->ShowStatus("Application du filtre terminée");<br>> }<br>><br>> when i visualize the volume, all slices are the same, the first slice <br>> isuued from the EigenFilter, so i think the Eigen Filter is not <br>> refreshing!<br>> could any one help me ?<br>> thx for your time,<br>>
Regards.<br>><br>> */"Kevin H. Hobbs" <kevin.hobbs.1 @ohiou.edu="">/* a écrit :<br>><br>> 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>><br>><br>> ------------------------------------------------------------------------<br>> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les <br>> tarifs exceptionnels pour appeler la France et l'international. <br>> Téléchargez <br>> <http:> <br>> la version beta.<br>><br>>------------------------------------------------------------------------<br>><br>>_______________________________________________<br>>Insight-users mailing
list<br>>Insight-users@itk.org<br>>http://www.itk.org/mailman/listinfo/insight-users<br>> <br>><br></http:></kevin.hobbs.1></m_inputimagesize></m_inputimagesize></m_inputimagesize></m_inputimagesize></m_inputimagesize></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.