![]() |
ImFusion SDK 4.3
|
#include <ImFusion/CT/ProjectionLoader.h>
Abstract base class for X-ray projection image loaders. More...
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 | |
| SharedImageSet & | m_images |
| Reference to the image container. | |
| std::vector< ImageDescriptor > | m_formats |
| Vector of supported image formats. | |
| int | m_format |
| The actual image format to load. | |
| Progress * | m_progress |
| Optional progress callback. | |
| std::mutex * | m_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. | |