[Insight-users] repeated dilation

Atwood, Robert C r.atwood at imperial.ac.uk
Mon Aug 8 13:50:01 EDT 2005


Dear ITK users/developers:
 
Can anyone explain how to repeatedly dilate a binary image a fixed number of times? 
 
If I set 
 BinImageType::Pointer bim=BinImageType::New();
 Dilate::Pointer dilater = Dilate::New();
...
 
 
bim = dilater->GetOuptut();
dilater->SetInput(bim);
writer->SetInput(bim);
for (i=0;i<5;i++){
   writer->Update();
}
 
that doesn't work , at least I get a blank image (I didn't think it would...) However I can't see how to get the output of a filter into its own input? 
 
 
 
 
 
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20050808/cec06381/attachment.html


More information about the Insight-users mailing list