ImageToArMem Class Reference

Allows to convert multiple CByteImages to Aron images and memory commits. More...

#include <VisionX/libraries/armem/vision/images/core/ImageToArMem.h>

+ Inheritance diagram for ImageToArMem:

Public Member Functions

void addImagesDepth (const armarx::armem::MemoryID &entityID, const std::vector< size_t > &imageIndices) override
 
void addImagesRGB (const armarx::armem::MemoryID &entityID, const std::vector< size_t > &imageIndices) override
 
armarx::armem::data::AddSegmentsResult addProviderSegments (bool clearWhenExists=true, int verbose=1)
 Add the required provider segments. More...
 
void commitCameraCalibration (const visionx::MonocularCalibration &)
 
void commitCameraCalibration (const visionx::StereoCalibration &)
 Calibration. More...
 
void commitImages ()
 Commit the stored image data. More...
 
armarx::armem::MemoryID getMemoryID () const override
 
 ImageToArMem ()
 
void initImages (const visionx::ImageFormatInfo &info)
 
void initImages (int width, int height, CByteImage::ImageType type)
 
armarx::armem::data::AddSegmentsInput makeAddSegmentsInput (bool clearWhenExists=true)
 Build inputs for adding the required provider segments. More...
 
std::vector< CByteImage > makeCByteImageBuffer ()
 
armarx::armem::Commit makeCommit () const
 Build the commit. More...
 
void setWriter (const armarx::armem::client::Writer &writer)
 
void setWritingMemory (armarx::armem::server::WritingMemoryInterfacePrx memory)
 
std::string summarizeStructure () const override
 
void useImageBuffers (CByteImage **inputImageBuffer, armarx::armem::Time timeProvided)
 Store image data from the given buffer. More...
 
void usePixelBuffers (void **inputImageBuffer, armarx::armem::Time timeProvided)
 
- Public Member Functions inherited from ImageAdapter
 ImageAdapter (const std::string &debugObserverChannelName="ImageAdapter")
 
void setDebugObserver (armarx::DebugObserverInterfacePrx proxy)
 
void setDebugObserver (armarx::DebugObserverInterfacePrx proxy, const std::string &channelName)
 
virtual ~ImageAdapter ()
 

Public Attributes

std::map< armarx::armem::MemoryID, std::vector< std::unique_ptr< ImageBase > > > imagesByEntity
 Entity ID to memory images (instances). More...
 
armarx::armem::client::Writer memoryWriter
 
armarx::armem::Time timestamp
 

Additional Inherited Members

- Protected Attributes inherited from ImageAdapter
armarx::DebugObserverInterfacePrx debugObserver
 
std::string debugObserverChannelName
 

Detailed Description

Allows to convert multiple CByteImages to Aron images and memory commits.

Definition at line 23 of file ImageToArMem.h.

Constructor & Destructor Documentation

◆ ImageToArMem()

Definition at line 25 of file ImageToArMem.cpp.

Member Function Documentation

◆ addImagesDepth()

void addImagesDepth ( const armarx::armem::MemoryID entityID,
const std::vector< size_t > &  imageIndices 
)
overridevirtual

Implements ImageAdapter.

Definition at line 75 of file ImageToArMem.cpp.

◆ addImagesRGB()

void addImagesRGB ( const armarx::armem::MemoryID entityID,
const std::vector< size_t > &  imageIndices 
)
overridevirtual

Implements ImageAdapter.

Definition at line 59 of file ImageToArMem.cpp.

◆ addProviderSegments()

armarx::armem::data::AddSegmentsResult addProviderSegments ( bool  clearWhenExists = true,
int  verbose = 1 
)

Add the required provider segments.

Definition at line 126 of file ImageToArMem.cpp.

+ Here is the call graph for this function:

◆ commitCameraCalibration() [1/2]

void commitCameraCalibration ( const visionx::MonocularCalibration &  calib)

Definition at line 260 of file ImageToArMem.cpp.

+ Here is the call graph for this function:

◆ commitCameraCalibration() [2/2]

void commitCameraCalibration ( const visionx::StereoCalibration &  calib)

Calibration.

Definition at line 229 of file ImageToArMem.cpp.

+ Here is the call graph for this function:

◆ commitImages()

void commitImages ( )

Commit the stored image data.

Definition at line 194 of file ImageToArMem.cpp.

+ Here is the call graph for this function:

◆ getMemoryID()

armarx::armem::MemoryID getMemoryID ( ) const
overridevirtual

Implements ImageAdapter.

Definition at line 91 of file ImageToArMem.cpp.

+ Here is the caller graph for this function:

◆ initImages() [1/2]

void initImages ( const visionx::ImageFormatInfo &  info)

◆ initImages() [2/2]

void initImages ( int  width,
int  height,
CByteImage::ImageType  type 
)

Definition at line 306 of file ImageToArMem.cpp.

◆ makeAddSegmentsInput()

armarx::armem::data::AddSegmentsInput makeAddSegmentsInput ( bool  clearWhenExists = true)

Build inputs for adding the required provider segments.

Definition at line 107 of file ImageToArMem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeCByteImageBuffer()

std::vector< CByteImage > makeCByteImageBuffer ( )

Definition at line 330 of file ImageToArMem.cpp.

◆ makeCommit()

armarx::armem::Commit makeCommit ( ) const

Build the commit.

Definition at line 174 of file ImageToArMem.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWriter()

void setWriter ( const armarx::armem::client::Writer writer)

Definition at line 53 of file ImageToArMem.cpp.

◆ setWritingMemory()

void setWritingMemory ( armarx::armem::server::WritingMemoryInterfacePrx  memory)

Definition at line 47 of file ImageToArMem.cpp.

+ Here is the call graph for this function:

◆ summarizeStructure()

std::string summarizeStructure ( ) const
overridevirtual

Implements ImageAdapter.

Definition at line 291 of file ImageToArMem.cpp.

+ Here is the call graph for this function:

◆ useImageBuffers()

void useImageBuffers ( CByteImage **  inputImageBuffer,
armarx::armem::Time  timeProvided 
)

Store image data from the given buffer.

Definition at line 148 of file ImageToArMem.cpp.

◆ usePixelBuffers()

void usePixelBuffers ( void **  inputImageBuffer,
armarx::armem::Time  timeProvided 
)

Definition at line 161 of file ImageToArMem.cpp.

Member Data Documentation

◆ imagesByEntity

std::map<armarx::armem::MemoryID, std::vector<std::unique_ptr<ImageBase> > > imagesByEntity

Entity ID to memory images (instances).

Definition at line 77 of file ImageToArMem.h.

◆ memoryWriter

Definition at line 74 of file ImageToArMem.h.

◆ timestamp

Definition at line 78 of file ImageToArMem.h.


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