[ITK] [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/community/attachments/20150710/b6578730/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list