5 #include <Image/ByteImage.h>
23 template <
class AronImageT>
26 for (
size_t i = 0; i < imageIndices.size(); ++i)
31 size_t index = imageIndices[i];
43 addImages<arondto::ImageRGB>(entityID, imageIndices);
49 addImages<arondto::ImageDepth>(entityID, imageIndices);
56 for (
size_t i = 0; i <
images.size(); ++i)
59 <<
"Currently, all images must be from the same memory.";
67 Eigen::Vector2i dims = dims.Zero();
68 for (
const auto& image :
images)
70 const cv::Mat& img = image->getImage();
71 dims(0) =
std::max(dims(0), img.cols);
72 dims(1) =
std::max(dims(1), img.rows);
81 auto it = std::find_if(updatedSnapshotIDs.begin(), updatedSnapshotIDs.end(), [
this](
const armarx::armem::MemoryID &
id)
83 return id.timestamp > timestamp;
85 if (it != updatedSnapshotIDs.end())
105 std::stringstream ss;
106 for (
size_t i = 0; i <
images.size(); ++i)
108 ss <<
"- [" <<
images[i]->imageIndex <<
"] id=" <<
images[i]->instanceID <<
"\n";
125 for (
const auto& image :
images)
133 updateAronImages(result.
memory);
141 for (
const auto& image :
images)
143 updated |= image->updateAronImage(memory);
151 std::stringstream ss;
152 for (
const auto& image :
images)
154 ss <<
"- " << image->printFormat() <<
"\n";