/*========================================================================= Program: bbtk Module: $RCSfile: bbitkImageReader.h,v $ Language: C++ Date: $Date: 2008/06/26 09:09:47 $ Version: $Revision: 1.6 $ 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 "bbtkAtomicBlackBox.h" #include "bbitkImage.h" namespace bbitk { //================================================================= // BlackBox declaration class ImageReader : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(ImageReader, bbtk::AtomicBlackBox); BBTK_DECLARE_INPUT(In,std::string); BBTK_DECLARE_OUTPUT(Out,anyImagePointer); BBTK_PROCESS(Read); void Read(); private: // Template read method template void Read(); }; //================================================================= //================================================================= // BlackBox description BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageReader,bbtk::AtomicBlackBox); BBTK_NAME("ImageReader"); BBTK_AUTHOR("laurent.guigues at creatis.insa-lyon.fr"); BBTK_CATEGORY("image;read/write"); BBTK_DESCRIPTION("Generic itk image reader"); BBTK_INPUT(ImageReader,In, "filename with complete path",std::string,"file name"); BBTK_OUTPUT(ImageReader,Out,"Output image",anyImagePointer,""); BBTK_END_DESCRIBE_BLACK_BOX(ImageReader); //================================================================= } //namespace bbtk #endif #endif