FAST
3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
|
#include <BoundingBox.hpp>
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 |
![]() | |
SpatialDataObject () | |
virtual DataBoundingBox | getBoundingBox () const |
virtual DataBoundingBox | getTransformedBoundingBox () const |
SceneGraphNode::pointer | getSceneGraphNode () const |
![]() | |
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 () |
![]() | |
Object () | |
virtual | ~Object () |
Reporter & | getReporter () |
Protected Member Functions | |
BoundingBox () | |
![]() | |
void | blockIfBeingWrittenTo () |
void | blockIfBeingAccessed () |
![]() | |
Reporter & | reportError () |
Reporter & | reportWarning () |
Reporter & | reportInfo () |
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 |
![]() | |
DataBoundingBox | mBoundingBox |
![]() | |
std::mutex | mDataIsBeingWrittenToMutex |
std::condition_variable | mDataIsBeingWrittenToCondition |
bool | mDataIsBeingWrittenTo |
std::mutex | mDataIsBeingAccessedMutex |
std::condition_variable | mDataIsBeingAccessedCondition |
bool | mDataIsBeingAccessed |
![]() | |
std::weak_ptr< Object > | mPtr |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< SpatialDataObject > | pointer |
![]() | |
typedef std::shared_ptr< DataObject > | pointer |
![]() | |
typedef std::shared_ptr< Object > | pointer |
![]() | |
static std::string | getStaticNameOfClass () |
![]() | |
static std::string | getStaticNameOfClass () |
![]() | |
static std::string | getStaticNameOfClass () |
|
protected |
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
|
inlineoverridevirtual |
Implements fast::DataObject.
|
inlineoverridevirtual |
Implements fast::DataObject.
uchar fast::BoundingBox::getLabel | ( | ) |
Vector2f fast::BoundingBox::getPosition | ( | ) |
float fast::BoundingBox::getScore | ( | ) |
Vector2f fast::BoundingBox::getSize | ( | ) |
float fast::BoundingBox::intersectionOverUnion | ( | BoundingBox::pointer | bbox2 | ) | const |
void fast::BoundingBox::setLabel | ( | uchar | label | ) |
void fast::BoundingBox::setPosition | ( | Vector2f | position | ) |
Set position in millimeters
void fast::BoundingBox::setScore | ( | float | score | ) |
void fast::BoundingBox::setSize | ( | Vector2f | size | ) |
Set size in millimeters
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |