/*========================================================================= Program: bbtk Module: $RCSfile: bbitkImageReader.h,v $ Language: C++ Date: $Date: 2008/02/05 12:03:01 $ 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 ITKImageReader : generic ITKImage reader */ /** * \class bbtk::ITKImageReader * \brief Generic ITKImage reader */ #ifdef _USE_ITK_ #ifndef __bbitkImageReader_h_INCLUDED__ #define __bbitkImageReader_h_INCLUDED__ #include "bbtkUserBlackBox.h" #include "bbitkImage.h" namespace bbitk { class ImageReader : public bbtk::UserBlackBox { BBTK_USER_BLACK_BOX_INTERFACE(ImageReader, bbtk::UserBlackBox); BBTK_DECLARE_INPUT(Filename,std::string); BBTK_DECLARE_OUTPUT(Out,anyImagePointer); BBTK_PROCESS(Read); void Read(); private: // Template read method template void Read(); }; //================================================================= // UserBlackBox description BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageReader,bbtk::UserBlackBox); BBTK_NAME("ImageReader"); BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr"); BBTK_DESCRIPTION("Generic itk image reader"); BBTK_INPUT(ImageReader,Filename, "filename with complete path",std::string); BBTK_OUTPUT(ImageReader,Out,"Output image",anyImagePointer); BBTK_END_DESCRIBE_BLACK_BOX(ImageReader); //================================================================= } //namespace bbtk #endif #endif