A.I.M.S


aims::LabelReader Class Reference

#include <aims/io/labelImage.h>

Inheritance diagram for aims::LabelReader:
Collaboration diagram for aims::LabelReader:

Public Member Functions

 LabelReader (const std::string &filename)
 
virtual ~LabelReader ()
 
virtual bool read (AimsData< int16_t > &vol, int border=0, const std::string *format=0)
 
- Public Member Functions inherited from aims::Reader< AimsData< int16_t > >
 Reader ()
 
 Reader (const std::string &filename)
 
virtual ~Reader ()
 
virtual bool read (AimsData< int16_t > &obj, int border=0, const std::string *format=0, int frame=-1)
 Finds the correct format and reads the object. if format is specified, this format is tried first, so you can use it as a hint if you already kow it (from the Finder check ). IF frame is specified and non-negative, reads only that frame (one temporal positon) of the file into time position zero of the object. More...
 
virtual AimsData< int16_t > * read (int border=0, const std::string *format=0, int frame=-1)
 Creates and reads an object. This function differs from the read( T&, ... ) function in the way that it creates the object and does not just fill it. This enables to create sub-classes of T (factory-like behaviour) on types that allow subclasses. The object is created by new and can be deleted. The default implementation just creates a T and calls the read( T&, ... ) function. More...
 
void setMode (carto::AllocatorStrategy::MappingMode mode)
 set input file mode - soon obsolete More...
 
void setAllocatorContext (const carto::AllocatorContext &ac)
 allocator control (not used by every format yet) More...
 
const carto::AllocatorContext & allocatorContext () const
 
void setFileName (const std::string &fileName)
 set input file name More...
 
const std::string & fileName () const
 get input file name More...
 
void setOptions (carto::Object options)
 
carto::Object options () const
 
carto::Objectoptions ()
 

Additional Inherited Members

- Static Public Member Functions inherited from aims::Reader< AimsData< int16_t > >
static std::string extension (const std::string &filename)
 
- Protected Attributes inherited from aims::Reader< AimsData< int16_t > >
std::string _filename
 
carto::AllocatorStrategy::MappingMode _mode
 
carto::AllocatorContext _alloccontext
 
carto::Object _options
 

Detailed Description

Definition at line 47 of file labelImage.h.

Constructor & Destructor Documentation

aims::LabelReader::LabelReader ( const std::string &  filename)
virtual aims::LabelReader::~LabelReader ( )
inlinevirtual

Definition at line 51 of file labelImage.h.

Member Function Documentation

virtual bool aims::LabelReader::read ( AimsData< int16_t > &  vol,
int  border = 0,
const std::string *  format = 0 
)
virtual

The documentation for this class was generated from the following file: