#include <bbitkImageReader.h>
Private Member Functions | |
BBTK_BLACK_BOX_INTERFACE (ImageReader, bbtk::AtomicBlackBox) | |
BBTK_DECLARE_INPUT (In, std::string) | |
BBTK_DECLARE_OUTPUT (Out, anyImagePointer) | |
BBTK_PROCESS (Read) | |
void | Read () |
template<class itkImageType> | |
void | Read () |
Definition at line 52 of file bbitkImageReader.h.
bbitk::ImageReader::BBTK_BLACK_BOX_INTERFACE | ( | ImageReader | , | |
bbtk::AtomicBlackBox | ||||
) | [private] |
bbitk::ImageReader::BBTK_DECLARE_INPUT | ( | In | , | |
std::string | ||||
) | [private] |
bbitk::ImageReader::BBTK_DECLARE_OUTPUT | ( | Out | , | |
anyImagePointer | ||||
) | [private] |
bbitk::ImageReader::BBTK_PROCESS | ( | Read | ) | [private] |
void bbitk::ImageReader::Read | ( | ) | [inline, private] |
Template Processing
Definition at line 50 of file bbitkImageReader.cxx.
References BBTK_TEMPLATE_ITK_IMAGE_SWITCH, and bbitk::GetITKImagePtrTypeInfoFromPixelTypeInfoAndDimension().
00051 { 00052 std::string filename = bbGetInputIn(); 00053 00054 itk::ImageIOBase::Pointer genericReader = 00055 itk::ImageIOFactory::CreateImageIO(filename.c_str(), 00056 itk::ImageIOFactory::ReadMode); 00057 if (!genericReader) 00058 { 00059 bbtkError("File format unknown (while reading \"" << filename << "\")"); 00060 } 00061 genericReader->SetFileName(filename.c_str()); 00062 genericReader->ReadImageInformation(); 00063 00064 bbtk::TypeInfo typ = GetITKImagePtrTypeInfoFromPixelTypeInfoAndDimension(genericReader->GetComponentTypeInfo(), genericReader->GetNumberOfDimensions()); 00065 00066 BBTK_TEMPLATE_ITK_IMAGE_SWITCH( typ, Read); 00067 }
void bbitk::ImageReader::Read | ( | ) | [inline, private] |