Skip to content
Snippets Groups Projects
Commit a791cc3c authored by Joana Plewnia's avatar Joana Plewnia
Browse files

Processors can now include .exr converter again

(tested in simulation)

Usage:
add ' "ExrConverter": {} ' to ltm.configuration property of VisionMemory
parent d130f933
No related branches found
No related tags found
1 merge request!322Feature/forgetting in wm and em
Pipeline #17015 passed
......@@ -40,11 +40,18 @@ namespace armarx::armem::server::ltm
// Converters
if (config.contains(processor::converter::data::image::PngConverter::NAME))
{
ARMARX_IMPORTANT << "ADDING IMG CONVERTER";
ARMARX_IMPORTANT << "ADDING IMG CONVERTER PNG";
auto f = std::make_unique<processor::converter::data::image::PngConverter>();
f->configure(config[processor::converter::data::image::PngConverter::NAME]);
converters.push_back(std::move(f));
}
if (config.contains(processor::converter::data::image::ExrConverter::NAME))
{
ARMARX_IMPORTANT << "ADDING IMG CONVERTER EXR";
auto f = std::make_unique<processor::converter::data::image::ExrConverter>();
f->configure(config[processor::converter::data::image::ExrConverter::NAME]);
converters.push_back(std::move(f));
}
}
std::map<std::string, processor::SnapshotFilter::FilterStatistics> Processors::getSnapshotFilterStatistics()
......
......@@ -9,6 +9,9 @@ namespace armarx::armem::server::ltm::processor::converter::data::image
class ExrConverter : public ImageConverter
{
public:
static const constexpr char* NAME = "ExrConverter";
ExrConverter() :
ImageConverter(ConverterType::Binary,
"depthimage",
......
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