Dear all,<br>
<br>
I would like to update the content of an image. I read an <br>image from a file and then this image is passed, as an <br>argument, in the itkGrayscaleDilateFilter. The output of <br>this filter is then modificated and passed again in the<br>
itkGrayscaleDilateFilter.How can I update the new content <br>ok ReaderMk(see the code)?<br><br>InputImageType::Pointer mk = InputImageType::New();<br>mk = readerMk->GetOutput(); <br> IteratorType mkIt( mk, mk->GetRequestedRegion() );
<br>
<br>
mkIt.SetDirection(0);<br>
<br>
grayscaleDilate->SetKernel( structuringElement );<br><div id="1eue" class="ArwC7c ckChnd"><br>
for (int i =0; i<2; i++)<br>
{<br>
grayscaleDilate->SetInput( readerMk->GetOutput() ); //I would like to update the readerMk<br>
grayscaleDilate->Update();<br>
<br>
for ( markerIt.GoToBegin(); ! markerIt.IsAtEnd();<br>
mkIt.NextLine())<br>
{<br>
makIt.GoToBeginOfLine();<br>
while ( ! mkIt.IsAtEndOfLine() )<br>
{<br>
mkIt.Set( false );<br>
++mkIt;<br>
}<br>
}<br> readerMk->Update(); //Do I need to add something else?<br></div>}<br><br>Thanks a lot for your help<br>