![]() |
ImFusion SDK 4.3
|
#include <ImFusion/ML/DataElements/KeypointsElement.h>
DataElement based on KeypointSet. More...
DataElement based on KeypointSet.
Public Member Functions | |
KeypointsElement (std::shared_ptr< KeypointSet > points) | |
KeypointsElement (const KeypointSet &points) | |
KeypointsElement (KeypointSet &&points) | |
KeypointsElement (const PointCloud &pointCloud) | |
ElementType | type () const override |
Returns the type of the underlying data. | |
int | dimension () const override |
Returns the dimensionality of the underlying data. | |
size_t | batchSize () const override |
Returns the batch size of the element. | |
void | setContent (std::shared_ptr< Data > points) override |
Sets the underlying data. | |
std::shared_ptr< KeypointSet > | keypoints () const |
void | setKeypoints (std::shared_ptr< KeypointSet > points) |
Sets the underlying KeypointSet. | |
std::vector< std::shared_ptr< DataElement > > | split () override |
Split an element into several ones along the batch dimension. | |
std::unique_ptr< DataElement > | clone (CloneOptions opt=CloneOptions::Everything) const override |
Create a (shallow or deep) copy of the element. | |
![]() | |
template<typename Derived> | |
Derived * | typed () |
template<typename Derived> | |
const Derived * | typed () const |
virtual std::shared_ptr< Data > | content () const |
Returns the underlying data object. | |
const DataComponentList & | components () const |
Convenience function to expose the DataComponents of the underlying Data object. | |
DataComponentList & | components () |
bool | isTarget () const |
Returns true if this element is marked as a label. | |
void | tagAsTarget () |
Mark this element as being a label. | |
void | untagAsTarget () |
Remove label status from this element. | |
Static Public Member Functions | |
static std::unique_ptr< DataElement > | stack (const std::vector< std::shared_ptr< KeypointsElement > > &elements) |
![]() | |
static std::unique_ptr< DataElement > | stack (const std::vector< std::shared_ptr< DataElement > > &elements) |
Stack several elements along the batch dimension. | |
Additional Inherited Members | |
![]() | |
enum class | CloneOptions { Everything = 0 , Container , NoImageData } |
Option to control which parts of the data element are to be copied when cloning the DataElement. More... | |
![]() | |
NotCopyable (NotCopyable &&) noexcept=default | |
NotCopyable & | operator= (NotCopyable &&) noexcept=default |
NotCopyable (const NotCopyable &)=delete | |
NotCopyable & | operator= (const NotCopyable &)=delete |
![]() | |
std::shared_ptr< Data > | m_data |
|
explicit |
|
inlineoverridevirtual |
Returns the type of the underlying data.
Implements DataElement.
|
overridevirtual |
Returns the dimensionality of the underlying data.
Implements DataElement.
|
overridevirtual |
Returns the batch size of the element.
Implements DataElement.
|
overridevirtual |
Sets the underlying data.
DataElementException | if points is nullptr or not of type KeypointSet |
Implements DataElement.
void setKeypoints | ( | std::shared_ptr< KeypointSet > | points | ) |
Sets the underlying KeypointSet.
DataElementException | if points is nullptr |
|
overridevirtual |
Split an element into several ones along the batch dimension.
After a call to this function, the element is empty.
Implements DataElement.
|
overridevirtual |
Create a (shallow or deep) copy of the element.
Implements DataElement.