[Insight-users] Ref. Smart pointers as function argument

Frederic Perez fredericpcx at gmail.com
Tue Nov 24 03:43:31 EST 2009


Hello Ricardo, Luis, and Insight-users,

you might also consider using ConstPointer

void foo(InputImageType::ConstPointer input);

This disallows the use of ImageRegionIterator to traverse input, forcing you
to use something like

itk::ImageRegionConstIterator<InputImageType> itI(input, region);

My two cents,

Frederic Perez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091124/b2ddb5b3/attachment.htm>


More information about the Insight-users mailing list