ImFusion SDK 4.3
ProjectionLoader Class Referenceabstract

#include <ImFusion/CT/ProjectionLoader.h>

Abstract base class for X-ray projection image loaders. More...

Detailed Description

Abstract base class for X-ray projection image loaders.

Provides common interface for loading projection data from various file formats.

Public Member Functions

 ProjectionLoader (SharedImageSet &images)
 Constructor with the image container to which the images shall be added.
 
virtual ~ProjectionLoader ()
 Virtual destructor.
 
void setFormat (const ImageDescriptor &descriptor)
 Set a single image format for loading.
 
void setValidFrames (const std::vector< bool > &validFrames)
 Set a boolean vector defining which frames are supposed to be loaded.
 
void addFormat (const ImageDescriptor &descriptor)
 Add an image format for loading.
 
void setProgress (Progress *p)
 Set a progress callback to be called after each loaded image.
 
void setMutex (std::mutex *m)
 Set mutex instance for multi-threaded image set synchronization.
 
virtual void load (int skip=0)=0
 Load images in previously specified folder, optionally skipping frames.
 
ImageDescriptor format () const
 Return the image format based on the result of setFolder.
 

Protected Attributes

SharedImageSetm_images
 Reference to the image container.
 
std::vector< ImageDescriptorm_formats
 Vector of supported image formats.
 
int m_format
 The actual image format to load.
 
Progressm_progress
 Optional progress callback.
 
std::mutexm_mutex
 Mutex for multi-threaded pre-processing.
 
std::vector< bool > m_validFrames
 Define which frames will be loaded. Frames with !considerFrames[i] will be skipped.
 

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close