Skip to content
Snippets Groups Projects
Commit 2e64c95e authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Disable image storing in example client

parent dd51f671
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,12 @@
#include <RobotAPI/components/armem/server/ExampleMemory/aron/ExampleData.aron.generated.h>
#define STORE_IMAGES 0
#if STORE_IMAGES
#include <opencv2/imgcodecs.hpp>
#include <opencv2/imgproc.hpp>
#endif
namespace armarx
......@@ -415,12 +419,11 @@ namespace armarx
pixel.z = color.b;
});
if (true)
{
cv::Mat out;
cv::cvtColor(image, out, CV_RGB2BGR);
cv::imwrite("the_rgb24_image.png", out);
}
#if STORE_IMAGES
cv::Mat out;
cv::cvtColor(image, out, CV_RGB2BGR);
cv::imwrite("the_rgb24_image.png", out);
#endif
}
{
cv::Mat& image = data.the_depth32_image;
......@@ -430,6 +433,7 @@ namespace armarx
pixel = 100 * float(position[0] + position[1]) / float(image.rows + image.cols);
});
#if STORE_IMAGES
cmap.set_vlimits(0, 100);
cv::Mat rgb(image.rows, image.cols, CV_8UC3);
using Pixel = cv::Point3_<uint8_t>;
......@@ -441,12 +445,10 @@ namespace armarx
pixel.z = color.b;
});
if (true)
{
cv::Mat out;
cv::cvtColor(rgb, out, CV_RGB2BGR);
cv::imwrite("the_depth32_image.png", out);
}
cv::Mat out;
cv::cvtColor(rgb, out, CV_RGB2BGR);
cv::imwrite("the_depth32_image.png", out);
#endif
}
update.instancesData = { data.toAron() };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment