[Insight-developers] ImageDuplicator documentation

David Doria daviddoria at gmail.com
Sat Oct 23 14:18:41 EDT 2010


I believe the illustrative code here:
http://www.itk.org/Doxygen316/html/classitk_1_1ImageDuplicator.html#_details

<http://www.itk.org/Doxygen316/html/classitk_1_1ImageDuplicator.html#_details>is
incorrect.

1) I don't know if it is standard to assume the itk namespace has been
"used", so I would change
typedef ImageDuplicator< ImageType > DuplicatorType;

to

typedef itk::ImageDuplicator< ImageType > DuplicatorType;

2) More importantly,
duplicator->SetInput();

must be changed to:

duplicator->SetInputImage(image);

If I can get a verification I'll (try to :) ) push the change.

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101023/c467bb7c/attachment.htm>


More information about the Insight-developers mailing list