/*========================================================================= Program: bbtk Module: $RCSfile: bbitkImageSeriesReader.h,v $ Language: C++ Date: $Date: 2008/02/05 12:03:02 $ Version: $Revision: 1.1 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*//** /** * \file * \brief class ITKImageSeriesReader : generic ITKImage reader */ /** * \class bbtk::ITKImageSeriesReader * \brief Generic ITKImage reader */ #ifdef _USE_ITK_ #ifndef __bbitkImageSeriesReader_h_INCLUDED__ #define __bbitkImageSeriesReader_h_INCLUDED__ #include "bbtkUserBlackBox.h" #include "bbitkImage.h" namespace bbitk { class ImageSeriesReader : public bbtk::UserBlackBox { BBTK_USER_BLACK_BOX_INTERFACE(ImageSeriesReader, bbtk::UserBlackBox); BBTK_DECLARE_INPUT(FileNames,std::vector); BBTK_DECLARE_OUTPUT(Out,anyImagePointer); BBTK_PROCESS(Read); void Read(); private: // Template read method template void Read(); }; //================================================================= // UserBlackBox description BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageSeriesReader,bbtk::UserBlackBox); BBTK_NAME("ImageSeriesReader"); BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr"); BBTK_DESCRIPTION("Generic itk image series reader"); typedef std::vector vectorofstring; BBTK_INPUT(ImageSeriesReader,FileNames, "vector of file names with complete paths",vectorofstring); BBTK_OUTPUT(ImageSeriesReader,Out,"Output itk::image with type T and dimension D determined by the content of the files",anyImagePointer); BBTK_END_DESCRIBE_BLACK_BOX(ImageSeriesReader); //================================================================= } //namespace bbtk #endif #endif