[ITK-users] storing images in a list
Hammond, Emily M
emily-hammond at uiowa.edu
Fri Jul 10 11:52:25 EDT 2015
Hello,
I am trying to store images in a list. Here is my code thus far.
std::list< LabelImageType::Pointer > lmImages;
std::list< LabelImageType::Pointer >::iterator it2 = lmImages.begin();
LabelImageType::Pointer image = reader->GetOutput();
std::cout << image << std::endl;
lmImages.insert(it2, image);
This code builds and complies, but I keep getting runtime errors when I try to insert image into the list.
Is there something inherent to image that prevents this from happening or is there a better way to do this?
Thanks!
Emily Hammond
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20150710/b6578730/attachment.html>
More information about the Insight-users
mailing list