1 /*=========================================================================
4 Module: $RCSfile: bbitkImageReader.h,v $
6 Date: $Date: 2008/02/05 12:11:51 $
7 Version: $Revision: 1.2 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*//**
20 * \brief class ITKImageReader : generic ITKImage reader
23 * \class bbtk::ITKImageReader
24 * \brief Generic ITKImage reader
28 #ifndef __bbitkImageReader_h_INCLUDED__
29 #define __bbitkImageReader_h_INCLUDED__
31 #include "bbtkUserBlackBox.h"
32 #include "bbitkImage.h"
37 class ImageReader : public bbtk::UserBlackBox
40 BBTK_USER_BLACK_BOX_INTERFACE(ImageReader,
43 BBTK_DECLARE_INPUT(Filename,std::string);
44 BBTK_DECLARE_OUTPUT(Out,anyImagePointer);
49 // Template read method
50 template<class itkImageType> void Read();
54 //=================================================================
55 // UserBlackBox description
56 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageReader,bbtk::UserBlackBox);
57 BBTK_NAME("ImageReader");
58 BBTK_AUTHOR("laurent.guigues at creatis.insa-lyon.fr");
59 BBTK_CATEGORY("image;read/write");
60 BBTK_DESCRIPTION("Generic itk image reader");
61 BBTK_INPUT(ImageReader,Filename,
62 "filename with complete path",std::string);
63 BBTK_OUTPUT(ImageReader,Out,"Output image",anyImagePointer);
64 BBTK_END_DESCRIBE_BLACK_BOX(ImageReader);
65 //=================================================================