FAST  3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
Public Types | Public Member Functions | Protected Member Functions | List of all members
fast::Segmentation Class Reference

#include <Segmentation.hpp>

+ Inheritance diagram for fast::Segmentation:
+ Collaboration diagram for fast::Segmentation:

Public Types

enum  LabelType {
  LABEL_BACKGROUND = 0, LABEL_FOREGROUND, LABEL_BLOOD, LABEL_VEIN,
  LABEL_ARTERY, LABEL_BONE, LABEL_MUSCLE, LABEL_NERVE,
  LABEL_YELLOW, LABEL_GREEN, LABEL_MAGENTA, LABEL_RED,
  LABEL_WHITE, LABEL_BLUE
}
 
- Public Types inherited from fast::SpatialDataObject
typedef std::shared_ptr< SpatialDataObjectpointer
 
- Public Types inherited from fast::DataObject
typedef std::shared_ptr< DataObjectpointer
 
- Public Types inherited from fast::Object
typedef std::shared_ptr< Objectpointer
 

Public Member Functions

void createFromImage (Image::pointer image)
 
 ~Segmentation ()
 
- Public Member Functions inherited from fast::Image
void createFromImage (Image::pointer image)
 
void create (VectorXui size, DataType type, uint nrOfChannels)
 
void create (uint width, uint height, DataType type, uint nrOfChannels)
 
void create (uint width, uint height, uint depth, DataType type, uint nrOfChannels)
 
void create (VectorXui size, DataType type, uint nrOfChannels, ExecutionDevice::pointer device, const void *const data)
 
void create (uint width, uint height, DataType type, uint nrOfChannels, ExecutionDevice::pointer device, const void *const data)
 
void create (uint width, uint height, uint depth, DataType type, uint nrOfChannels, ExecutionDevice::pointer device, const void *const data)
 
void create (VectorXui size, DataType type, uint nrOfChannels, const void *const data)
 
void create (uint width, uint height, DataType type, uint nrOfChannels, const void *const data)
 
void create (uint width, uint height, uint depth, DataType type, uint nrOfChannels, const void *const data)
 
template<class T >
void create (uint width, uint height, DataType type, uint nrOfChannels, ExecutionDevice::pointer device, std::unique_ptr< T > data)
 
template<class T >
void create (uint width, uint height, uint depth, DataType type, uint nrOfChannels, ExecutionDevice::pointer device, std::unique_ptr< T > data)
 
template<class T >
void create (VectorXui, DataType type, uint nrOfChannels, ExecutionDevice::pointer device, std::unique_ptr< T > ptr)
 
template<class T >
void create (uint width, uint height, DataType type, uint nrOfChannels, std::unique_ptr< T > ptr)
 
template<class T >
void create (uint width, uint height, uint depth, DataType type, uint nrOfChannels, std::unique_ptr< T > ptr)
 
template<class T >
void create (VectorXui, DataType type, uint nrOfChannels, std::unique_ptr< T > ptr)
 
OpenCLImageAccess::pointer getOpenCLImageAccess (accessType type, OpenCLDevice::pointer)
 
OpenCLBufferAccess::pointer getOpenCLBufferAccess (accessType type, OpenCLDevice::pointer)
 
ImageAccess::pointer getImageAccess (accessType type)
 
 ~Image ()
 
int getWidth () const
 
int getHeight () const
 
int getDepth () const
 
int getNrOfVoxels () const
 
Vector3ui getSize () const
 
uchar getDimensions () const
 
DataType getDataType () const
 
int getNrOfChannels () const
 
Vector3f getSpacing () const
 
void setSpacing (Vector3f spacing)
 
void setSpacing (float x, float y, float z)
 
float calculateMaximumIntensity ()
 
float calculateMinimumIntensity ()
 
float calculateAverageIntensity ()
 
Image::pointer copy (ExecutionDevice::pointer device)
 
Image::pointer crop (VectorXi offset, VectorXi size, bool allowOutOfBoundsCropping=false)
 
void fill (float value)
 
DataBoundingBox getTransformedBoundingBox () const override
 
DataBoundingBox getBoundingBox () const override
 
void free (ExecutionDevice::pointer device) override
 
void freeAll () override
 
- Public Member Functions inherited from fast::SpatialDataObject
 SpatialDataObject ()
 
SceneGraphNode::pointer getSceneGraphNode () const
 
- Public Member Functions inherited from fast::DataObject
 DataObject ()
 
void setMetadata (std::string name, std::string value)
 
void setMetadata (std::unordered_map< std::string, std::string > metadata)
 
std::string getMetadata (std::string name) const
 
std::unordered_map< std::string, std::string > getMetadata () const
 
void deleteMetadata (std::string name)
 
uint64_t getTimestamp () const
 
void updateModifiedTimestamp ()
 
virtual ~DataObject ()
 
virtual std::string getNameOfClass () const =0
 
uint64_t getCreationTimestamp () const
 
void setCreationTimestamp (uint64_t timestamp)
 
void setLastFrame (std::string streamer)
 
bool isLastFrame ()
 
bool isLastFrame (std::string streamer)
 
std::unordered_set< std::string > getLastFrame ()
 
void setFrameData (std::string name, std::string value)
 
std::string getFrameData (std::string name)
 
std::unordered_map< std::string, std::string > getFrameData ()
 
void accessFinished ()
 
- Public Member Functions inherited from fast::Object
 Object ()
 
virtual ~Object ()
 
ReportergetReporter ()
 

Protected Member Functions

 Segmentation ()
 
- Protected Member Functions inherited from fast::Image
 Image ()
 
void setData (ExecutionDevice::pointer device, void *data)
 
void copyData (ExecutionDevice::pointer device, const void *const data)
 
void findDeviceWithUptodateData (ExecutionDevice::pointer &device, bool &isOpenCLImage)
 
void setAllDataToOutOfDate ()
 
bool isInitialized () const
 
void updateOpenCLImageData (OpenCLDevice::pointer device)
 
void transferCLImageFromHost (OpenCLDevice::pointer device)
 
void transferCLImageToHost (OpenCLDevice::pointer device)
 
void updateOpenCLBufferData (OpenCLDevice::pointer device)
 
void transferCLBufferFromHost (OpenCLDevice::pointer device)
 
void transferCLBufferToHost (OpenCLDevice::pointer device)
 
void updateHostData ()
 
bool hasAnyData ()
 
uint getBufferSize () const
 
void calculateMaxAndMinIntensity ()
 
- Protected Member Functions inherited from fast::DataObject
void blockIfBeingWrittenTo ()
 
void blockIfBeingAccessed ()
 
- Protected Member Functions inherited from fast::Object
ReporterreportError ()
 
ReporterreportWarning ()
 
ReporterreportInfo ()
 
ReporterEnd reportEnd () const
 

Additional Inherited Members

- Static Public Member Functions inherited from fast::SpatialDataObject
static std::string getStaticNameOfClass ()
 
- Static Public Member Functions inherited from fast::DataObject
static std::string getStaticNameOfClass ()
 
- Static Public Member Functions inherited from fast::Object
static std::string getStaticNameOfClass ()
 
- Protected Attributes inherited from fast::Image
std::unordered_map< OpenCLDevice::pointer, cl::Image * > mCLImages
 
std::unordered_map< OpenCLDevice::pointer, bool > mCLImagesIsUpToDate
 
std::unordered_map< OpenCLDevice::pointer, cl::Buffer * > mCLBuffers
 
std::unordered_map< OpenCLDevice::pointer, bool > mCLBuffersIsUpToDate
 
unique_pixel_ptr mHostData
 
bool mHostHasData
 
bool mHostDataIsUpToDate
 
uint mWidth
 
uint mHeight
 
uint mDepth
 
uchar mDimensions
 
DataType mType
 
uint mChannels
 
bool mIsInitialized
 
Vector3f mSpacing
 
float mMaximumIntensity
 
float mMinimumIntensity
 
float mAverageIntensity
 
unsigned long mMaxMinTimestamp
 
unsigned long mAverageIntensityTimestamp
 
bool mMaxMinInitialized
 
bool mAverageInitialized
 
- Protected Attributes inherited from fast::SpatialDataObject
DataBoundingBox mBoundingBox
 
- Protected Attributes inherited from fast::DataObject
std::mutex mDataIsBeingWrittenToMutex
 
std::condition_variable mDataIsBeingWrittenToCondition
 
bool mDataIsBeingWrittenTo
 
std::mutex mDataIsBeingAccessedMutex
 
std::condition_variable mDataIsBeingAccessedCondition
 
bool mDataIsBeingAccessed
 
- Protected Attributes inherited from fast::Object
std::weak_ptr< ObjectmPtr
 

Member Enumeration Documentation

◆ LabelType

Enumerator
LABEL_BACKGROUND 
LABEL_FOREGROUND 
LABEL_BLOOD 
LABEL_VEIN 
LABEL_ARTERY 
LABEL_BONE 
LABEL_MUSCLE 
LABEL_NERVE 
LABEL_YELLOW 
LABEL_GREEN 
LABEL_MAGENTA 
LABEL_RED 
LABEL_WHITE 
LABEL_BLUE 

Constructor & Destructor Documentation

◆ ~Segmentation()

fast::Segmentation::~Segmentation ( )

◆ Segmentation()

fast::Segmentation::Segmentation ( )
protected

Member Function Documentation

◆ createFromImage()

void fast::Segmentation::createFromImage ( Image::pointer  image)

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