Input and output of images. More...
Data Structures | |
class | C2DIOVectorfield |
a class for the IO of 2D vector fields More... | |
class | C2DTransformIOPluginHandlerImpl |
The non-singleton plug-in handler for 3D transformations. More... | |
class | C3DImageVector |
A class to interface images with image IO plugins. More... | |
class | C3DIOVectorfield |
An interface class to wrap a vector field into something, IO plugins can understand. More... | |
class | C3DTransformIOPluginHandlerImpl |
The non-singleton plug-in handler for 3D transformations. More... | |
class | CDatapool |
temporary data storage to avoid storing on disk More... | |
class | CFile |
A wrapper for the cstdio file type that closes the file automatically when the scope is left. More... | |
class | CInputFile |
A stdio FILE for opening a file for reading. More... | |
class | CIOData |
helper class to derive from for data that can be loaded and stored to a disk. More... | |
class | COutputFile |
A stdio FILE for opening a file for writing. More... | |
Typedefs | |
typedef THandlerSingleton< C2DImageIOPPH > | C2DImageIOPluginHandler |
typedef C2DRGBImageIOPluginPluginHandler::Instance::DataKey | C2DRGBImageDataKey |
The data key type for the CDatapool storage. More... | |
typedef mia::THandlerSingleton< mia::TIOPluginHandler< C2DRGBImageIOPlugin > > | C2DRGBImageIOPluginPluginHandler |
The 2D RGB image plugin handler. More... | |
typedef C2DTransformationIOPluginHandler::Instance::DataKey | C2DTransformationDataKey |
The data key type for the CDatapool storage. More... | |
typedef TIOPlugin< C2DTransformation > | C2DTransformationIO |
The base class for 2D transformation IO plugins. More... | |
typedef THandlerSingleton< C2DTransformIOPluginHandlerImpl > | C2DTransformationIOPluginHandler |
The 2D transformationb plugin handler. More... | |
typedef C3DImageIOPluginHandler::Instance::DataKey | C3DImageDataKey |
Data key type used to load and store to the CDatapool. More... | |
typedef TIOPlugin< io_3dimage_data > | C3DImageIOPlugin |
The 3D image io plugin base class. More... | |
typedef THandlerSingleton< TIOPluginHandler< C3DImageIOPlugin > > | C3DImageIOPluginHandler |
Handler for the plug-ins that store and load 3D images. More... | |
typedef C3DLandmarklistIOPluginHandler::Instance::DataKey | C3DLandmarklistDataKey |
3D Landmark list data key to load and store to the CDatapool More... | |
typedef TIOPlugin< C3DLandmarklist > | C3DLandmarklistIOPlugin |
3D Landmark list IO plugin base More... | |
typedef THandlerSingleton< TIOPluginHandler< C3DLandmarklistIOPlugin > > | C3DLandmarklistIOPluginHandler |
3D Landmark list IO plugin handler More... | |
typedef C3DTransformationIOPluginHandler::Instance::DataKey | C3DTransformationDataKey |
data key type for temporary storage of 3D transformations More... | |
typedef TIOPlugin< C3DTransformation > | C3DTransformationIO |
Base class for the generic IO of transformations. More... | |
typedef THandlerSingleton< C3DTransformIOPluginHandlerImpl > | C3DTransformationIOPluginHandler |
Plug-in handler for the transformation IO plug-ins. More... | |
typedef TTransformCreator< C3DTransformation > | C3DTransformCreator |
base class for the creators of 3D transformations More... | |
typedef THandlerSingleton< TFactoryPluginHandler< C3DTransformCreatorPlugin > > | C3DTransformCreatorHandler |
Transform creator plugin handler. More... | |
typedef TTransformCreatorPlugin< C3DTransformation > | C3DTransformCreatorPlugin |
Base class for the transform creator plugins. More... | |
typedef TIOPlugin< C3DIOVectorfield > | C3DVFIOPlugin |
Base class for vector field IO plug-ins. More... | |
typedef THandlerSingleton< TIOPluginHandler< C3DVFIOPlugin > > | C3DVFIOPluginHandler |
Plug-in handler for vector field IO. More... | |
typedef C3DImageIOPluginHandler::Instance::PData | P3DImageVector |
pointer type to the images More... | |
typedef std::shared_ptr< C3DTransformCreator > | P3DTransformationFactory |
pointer type of the class for the creators of 3D transformations More... | |
Functions | |
P2DTransformation | load_2dtransform (const std::string &file) |
convenienance function to load a transformation More... | |
P3DTransformation | load_3dtransform (const std::string &file) |
convenienance function to load a transformation More... | |
P2DImage EXPORT_2D | load_image2d (const std::string &filename) |
P3DImage EXPORT_3D | load_image3d (const std::string &filename) |
template<> | |
P2DImage | load_image< P2DImage > (const std::string &filename) |
template<> | |
P3DImage EXPORT_3D | load_image< P3DImage > (const std::string &filename) |
C2DImageGroupedSeries EXPORT_2D | load_image_series (const std::vector< std::string > &filenames, CProgressCallback *cb=NULL) |
template<typename T > | |
T | load_transform (const std::string &file) |
template to unify transformation loading More... | |
template<> | |
P2DTransformation | load_transform< P2DTransformation > (const std::string &file) |
specialized version to load a transformation More... | |
template<> | |
P3DTransformation | load_transform< P3DTransformation > (const std::string &file) |
specialized version to load a transformation More... | |
bool EXPORT_3D | save_image (const std::string &filename, P3DImage image) |
bool EXPORT_3D | save_image (const std::string &filename, C3DImage &image) |
bool EXPORT_2D | save_image (const std::string &filename, P2DImage image) |
bool EXPORT_2D | save_image (const std::string &filename, C2DImage &image) |
bool | save_transform (const std::string &file, const C3DTransformation &transform) |
convenienance function to save a transformation More... | |
bool | save_transform (const std::string &file, const C2DTransformation &transform) |
convenienance function to save a transformation More... | |
Input and output of images.
typedef THandlerSingleton< C2DImageIOPPH > C2DImageIOPluginHandler |
The 2D image IO plugin handler that also provides the interface to load and store 2D images.
Definition at line 84 of file 2d/imageio.hh.
typedef C2DRGBImageIOPluginPluginHandler::Instance::DataKey C2DRGBImageDataKey |
The data key type for the CDatapool storage.
Definition at line 100 of file rgbimageio.hh.
typedef mia::THandlerSingleton< mia::TIOPluginHandler<C2DRGBImageIOPlugin> > C2DRGBImageIOPluginPluginHandler |
The 2D RGB image plugin handler.
Definition at line 94 of file rgbimageio.hh.
typedef C2DTransformationIOPluginHandler::Instance::DataKey C2DTransformationDataKey |
The data key type for the CDatapool storage.
Definition at line 65 of file 2d/transformio.hh.
The base class for 2D transformation IO plugins.
Definition at line 38 of file 2d/transformio.hh.
The 2D transformationb plugin handler.
Definition at line 59 of file 2d/transformio.hh.
typedef C3DImageIOPluginHandler::Instance::DataKey C3DImageDataKey |
Data key type used to load and store to the CDatapool.
Definition at line 74 of file 3d/imageio.hh.
typedef TIOPlugin<io_3dimage_data> C3DImageIOPlugin |
The 3D image io plugin base class.
Definition at line 53 of file 3d/imageio.hh.
Handler for the plug-ins that store and load 3D images.
Definition at line 62 of file 3d/imageio.hh.
typedef C3DLandmarklistIOPluginHandler::Instance::DataKey C3DLandmarklistDataKey |
3D Landmark list data key to load and store to the CDatapool
Definition at line 60 of file landmarklistio.hh.
3D Landmark list IO plugin base
Definition at line 34 of file landmarklistio.hh.
typedef THandlerSingleton<TIOPluginHandler<C3DLandmarklistIOPlugin> > C3DLandmarklistIOPluginHandler |
3D Landmark list IO plugin handler
Definition at line 54 of file landmarklistio.hh.
typedef C3DTransformationIOPluginHandler::Instance::DataKey C3DTransformationDataKey |
data key type for temporary storage of 3D transformations
Definition at line 61 of file 3d/transformio.hh.
Base class for the generic IO of transformations.
Definition at line 34 of file 3d/transformio.hh.
Plug-in handler for the transformation IO plug-ins.
Definition at line 55 of file 3d/transformio.hh.
base class for the creators of 3D transformations
Definition at line 35 of file 3d/transformfactory.hh.
typedef THandlerSingleton<TFactoryPluginHandler<C3DTransformCreatorPlugin> > C3DTransformCreatorHandler |
Transform creator plugin handler.
Definition at line 53 of file 3d/transformfactory.hh.
Base class for the transform creator plugins.
Definition at line 47 of file 3d/transformfactory.hh.
typedef TIOPlugin<C3DIOVectorfield> C3DVFIOPlugin |
Base class for vector field IO plug-ins.
Definition at line 63 of file 3d/vfio.hh.
Plug-in handler for vector field IO.
Definition at line 75 of file 3d/vfio.hh.
typedef C3DImageIOPluginHandler::Instance::PData P3DImageVector |
pointer type to the images
Definition at line 80 of file 3d/imageio.hh.
typedef std::shared_ptr<C3DTransformCreator > P3DTransformationFactory |
pointer type of the class for the creators of 3D transformations
Definition at line 41 of file 3d/transformfactory.hh.
|
inline |
convenienance function to load a transformation
file | file name to load the transformation from |
Definition at line 74 of file 2d/transformio.hh.
References THandlerSingleton< T >::instance().
Referenced by load_transform< P2DTransformation >().
|
inline |
convenienance function to load a transformation
file | file name to load the transformation from |
Definition at line 70 of file 3d/transformio.hh.
References THandlerSingleton< T >::instance().
Referenced by load_transform< P3DTransformation >().
Convenience function to load one 2D image from a file
filename |
Referenced by load_image< P2DImage >().
convenience function to load a single image from a file.
std::invalid_argument | if the image could not be loaded |
filename | input file |
Referenced by load_image< P3DImage >().
|
inline |
Convenience function to load one 2D image from a file
filename |
Definition at line 130 of file 2d/imageio.hh.
References EXPORT_2D, load_image2d(), load_image_series(), NS_MIA_END, and save_image().
|
inline |
convenience function to load a single image from a file.
std::invalid_argument | if the image could not be loaded |
filename | input file |
Definition at line 109 of file 3d/imageio.hh.
References cvdebug(), EXPORT_3D, load_image3d(), NS_MIA_END, and save_image().
C2DImageGroupedSeries EXPORT_2D load_image_series | ( | const std::vector< std::string > & | filenames, |
CProgressCallback * | cb = NULL |
||
) |
Convenience function to load a series of images and group them into sets based on the acquisition parameters if available. If these parameters are not available, then the order of the input files is used to sort the files but no grouping takes place.
filenames | list of file names |
cb | optionally provide a call back function that shows loading progress |
Referenced by load_image< P2DImage >().
T load_transform | ( | const std::string & | file | ) |
template to unify transformation loading
T | the type of the transformation to be loaded |
file | the file name of the transformation to be loaded |
Definition at line 120 of file transformation.hh.
|
inline |
specialized version to load a transformation
file | file name to load the transformation from |
Definition at line 86 of file 2d/transformio.hh.
References load_2dtransform().
|
inline |
specialized version to load a transformation
file | file name to load the transformation from |
Definition at line 82 of file 3d/transformio.hh.
References load_3dtransform().
convenience function to save a single image to a file.
filename | input file |
image | image to be saved |
Referenced by load_image< P3DImage >().
Convenience function to save one 3D image to a file
filename | |
image |
Convenience function to save one 2D image to a file
filename | |
image |
Referenced by load_image< P2DImage >().
Convenience function to save one 2D image to a file
filename | |
image |
|
inline |
convenienance function to save a transformation
file | file name to store the transformation in |
transform | the transformation to be stored |
Definition at line 94 of file 3d/transformio.hh.
References THandlerSingleton< T >::instance(), and NS_MIA_END.
|
inline |
convenienance function to save a transformation
file | file name to store the transformation in |
transform | the transformation to be stored |
Definition at line 98 of file 2d/transformio.hh.
References THandlerSingleton< T >::instance(), and NS_MIA_END.