From a13d364535da892bef280e605549562f05e52d4e Mon Sep 17 00:00:00 2001 From: Frederic Cervenansky Date: Wed, 25 May 2011 12:52:49 +0000 Subject: [PATCH] boxes to read vector of itkImage --- bbtk/src/bbcreaImageIOItkImagesChooserDialogBox.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bbtk/src/bbcreaImageIOItkImagesChooserDialogBox.cxx b/bbtk/src/bbcreaImageIOItkImagesChooserDialogBox.cxx index c035509..2d46651 100644 --- a/bbtk/src/bbcreaImageIOItkImagesChooserDialogBox.cxx +++ b/bbtk/src/bbcreaImageIOItkImagesChooserDialogBox.cxx @@ -18,8 +18,7 @@ void ItkImagesChooserDialogBox::Process() dlg = new creaImageIO::WxAnySimpleDlg(0,crea::std2wx(bbGetInputTitle()),"localdatabase_Descriptor.dscp","Local Database"); dlg->ShowModal(); - - // FCY to test + bbtk::TypeInfo typ = bbitk::GetITKImagePtrTypeInfoFromPixelTypeInfoAndDimension(*dlg->getTypes().front(), dlg->getDims().front()); BBTK_TEMPLATE_ITK_IMAGE_SWITCH(typ, Export); bbSetOutputOutVImages(dlg->getVtkImagesSelected()); @@ -34,7 +33,14 @@ void ItkImagesChooserDialogBox::Export() } else if (dlg->getImagesSelected().size() > 1) { -// bbSetOutputOutImages( bbSetOutputOutIImages( dlg->getTemplatedImagesSelected() )); + OutputImagesITKType temp; + //std::vector temp; + std::vector::iterator it = dlg->getTemplatedImagesSelected().begin(); + for(;it != dlg->getTemplatedImagesSelected().end(); ++it) + { + temp.push_back( (*it).GetPointer() ); + } + bbSetOutputOutIImages( temp); } else { -- 2.47.1