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

#include <BoundingBox.hpp>

+ Inheritance diagram for fast::BoundingBox:
+ Collaboration diagram for fast::BoundingBox:

Public Member Functions

void create (Vector2f position, Vector2f size, uchar label=1, float score=0.0f)
 
void setLabel (uchar label)
 
uchar getLabel ()
 
void setPosition (Vector2f position)
 
Vector2f getPosition ()
 
void setSize (Vector2f size)
 
Vector2f getSize ()
 
void setScore (float score)
 
float getScore ()
 
void free (ExecutionDevice::pointer device) override
 
void freeAll () override
 
float intersectionOverUnion (BoundingBox::pointer bbox2) const
 
- Public Member Functions inherited from fast::SpatialDataObject
 SpatialDataObject ()
 
virtual DataBoundingBox getBoundingBox () const
 
virtual DataBoundingBox getTransformedBoundingBox () const
 
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

 BoundingBox ()
 
- Protected Member Functions inherited from fast::DataObject
void blockIfBeingWrittenTo ()
 
void blockIfBeingAccessed ()
 
- Protected Member Functions inherited from fast::Object
ReporterreportError ()
 
ReporterreportWarning ()
 
ReporterreportInfo ()
 
ReporterEnd reportEnd () const
 

Protected Attributes

bool m_initialized = false
 
uchar m_label = 1
 
Vector2f m_position
 
Vector2f m_size
 
float m_score
 
std::mutex m_mutex
 
- 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
 

Additional Inherited Members

- 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
 
- 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 ()
 

Constructor & Destructor Documentation

◆ BoundingBox()

fast::BoundingBox::BoundingBox ( )
protected

Member Function Documentation

◆ create()

void fast::BoundingBox::create ( Vector2f  position,
Vector2f  size,
uchar  label = 1,
float  score = 0.0f 
)

Create bounding box object with position and size set in millimeters

◆ free()

void fast::BoundingBox::free ( ExecutionDevice::pointer  device)
inlineoverridevirtual

Implements fast::DataObject.

◆ freeAll()

void fast::BoundingBox::freeAll ( )
inlineoverridevirtual

Implements fast::DataObject.

◆ getLabel()

uchar fast::BoundingBox::getLabel ( )

◆ getPosition()

Vector2f fast::BoundingBox::getPosition ( )

◆ getScore()

float fast::BoundingBox::getScore ( )

◆ getSize()

Vector2f fast::BoundingBox::getSize ( )

◆ intersectionOverUnion()

float fast::BoundingBox::intersectionOverUnion ( BoundingBox::pointer  bbox2) const

◆ setLabel()

void fast::BoundingBox::setLabel ( uchar  label)

◆ setPosition()

void fast::BoundingBox::setPosition ( Vector2f  position)

Set position in millimeters

◆ setScore()

void fast::BoundingBox::setScore ( float  score)

◆ setSize()

void fast::BoundingBox::setSize ( Vector2f  size)

Set size in millimeters

Member Data Documentation

◆ m_initialized

bool fast::BoundingBox::m_initialized = false
protected

◆ m_label

uchar fast::BoundingBox::m_label = 1
protected

◆ m_mutex

std::mutex fast::BoundingBox::m_mutex
protected

◆ m_position

Vector2f fast::BoundingBox::m_position
protected

◆ m_score

float fast::BoundingBox::m_score
protected

◆ m_size

Vector2f fast::BoundingBox::m_size
protected

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