|
Allows to convert multiple CByteImages to Aron images and memory commits. More...
#include <VisionX/libraries/armem/vision/images/core/ImageToArMem.h>
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 |
Allows to convert multiple CByteImages to Aron images and memory commits.
Definition at line 23 of file ImageToArMem.h.
ImageToArMem | ( | ) |
Definition at line 25 of file ImageToArMem.cpp.
|
overridevirtual |
Implements ImageAdapter.
Definition at line 75 of file ImageToArMem.cpp.
|
overridevirtual |
Implements ImageAdapter.
Definition at line 59 of file ImageToArMem.cpp.
armarx::armem::data::AddSegmentsResult addProviderSegments | ( | bool | clearWhenExists = true , |
int | verbose = 1 |
||
) |
Add the required provider segments.
Definition at line 126 of file ImageToArMem.cpp.
void commitCameraCalibration | ( | const visionx::MonocularCalibration & | calib | ) |
void commitCameraCalibration | ( | const visionx::StereoCalibration & | calib | ) |
Calibration.
Definition at line 229 of file ImageToArMem.cpp.
void commitImages | ( | ) |
Commit the stored image data.
Definition at line 194 of file ImageToArMem.cpp.
|
overridevirtual |
Implements ImageAdapter.
Definition at line 91 of file ImageToArMem.cpp.
void initImages | ( | const visionx::ImageFormatInfo & | info | ) |
void initImages | ( | int | width, |
int | height, | ||
CByteImage::ImageType | type | ||
) |
Definition at line 306 of file ImageToArMem.cpp.
armarx::armem::data::AddSegmentsInput makeAddSegmentsInput | ( | bool | clearWhenExists = true | ) |
Build inputs for adding the required provider segments.
Definition at line 107 of file ImageToArMem.cpp.
std::vector< CByteImage > makeCByteImageBuffer | ( | ) |
Definition at line 330 of file ImageToArMem.cpp.
armarx::armem::Commit makeCommit | ( | ) | const |
Build the commit.
Definition at line 174 of file ImageToArMem.cpp.
void setWriter | ( | const armarx::armem::client::Writer & | writer | ) |
Definition at line 53 of file ImageToArMem.cpp.
void setWritingMemory | ( | armarx::armem::server::WritingMemoryInterfacePrx | memory | ) |
|
overridevirtual |
Implements ImageAdapter.
Definition at line 291 of file ImageToArMem.cpp.
void useImageBuffers | ( | CByteImage ** | inputImageBuffer, |
armarx::armem::Time | timeProvided | ||
) |
Store image data from the given buffer.
Definition at line 148 of file ImageToArMem.cpp.
void usePixelBuffers | ( | void ** | inputImageBuffer, |
armarx::armem::Time | timeProvided | ||
) |
Definition at line 161 of file ImageToArMem.cpp.
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.
armarx::armem::client::Writer memoryWriter |
Definition at line 74 of file ImageToArMem.h.
armarx::armem::Time timestamp |
Definition at line 78 of file ImageToArMem.h.