17 #include <itksys/SystemTools.hxx>
18 #include <itkImageFileReader.h>
19 #include <itkNrrdImageIO.h>
28 std::vector<itk::SmartPointer<mitk::BaseData> > result;
29 typedef itk::ImageFileReader<ImageType> FileReaderType;
33 reader->SetImageIO(io);
38 result.push_back(img.GetPointer());
65 mimeType.
SetComment(
"Experimental MBI LabelSetImage");
66 this->SetMimeType(mimeType);
67 this->SetDescription(
"MBI LabelSetImage");
68 this->RegisterService();
itk::SmartPointer< Self > Pointer
itk::Image< unsigned char, 3 > ImageType
void SetComment(const std::string &comment)
The CustomMimeType class represents a custom mime-type which may be registered as a service object...
void AddExtension(const std::string &extension)
void SetCategory(const std::string &category)
void CastToMitkImage(const itk::SmartPointer< ItkOutputImageType > &itkimage, itk::SmartPointer< mitk::Image > &mitkoutputimage)
Cast an itk::Image (with a specific type) to an mitk::Image.
Base class for creating mitk::BaseData objects from files or streams.
virtual std::string GetInputLocation() const override
Get the current input location.
virtual std::vector< itk::SmartPointer< BaseData > > Read()
Reads a path or stream and creates a list of BaseData objects.
virtual ~DummyLsetFileReader()
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.