ImageExtractor.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Base Class
5 
6 #include "../Extractor.h"
7 
9 {
11  {
12  public:
13  std::map<std::string, aron::data::VariantPtr> images;
14 
16  void visitUnknown(Input& data);
17  };
18 
19  class ImageExtractor : public Extractor
20  {
21  public:
22  ImageExtractor() : Extractor(aron::type::Descriptor::IMAGE, "image"){};
23 
24  ExtractionResult extract(aron::data::DictPtr& data) override;
25  aron::data::DictPtr merge(ExtractionResult& encoding) override;
26  };
27 } // namespace armarx::armem::server::ltm::processor::extractor
armarx::armem::server::ltm::processor::extractor::ImageExtractorVisitor::visitDictOnEnter
void visitDictOnEnter(Input &data)
Definition: ImageExtractor.cpp:6
armarx::armem::server::ltm::processor::extractor
Definition: DepthImageExtractor.cpp:4
armarx::armem::server::ltm::processor::extractor::ImageExtractorVisitor::visitUnknown
void visitUnknown(Input &data)
Definition: ImageExtractor.cpp:30
armarx::armem::server::ltm::processor::extractor::ImageExtractor
Definition: ImageExtractor.h:19
armarx::aron::data::RecursiveVariantVisitor
Definition: VariantVisitor.h:157
armarx::aron::data::RecursiveVisitor< data::VariantPtr >::Input
typename VisitorBase< data::VariantPtr >::Input Input
Definition: RecursiveVisitor.h:39
armarx::armem::server::ltm::processor::extractor::ImageExtractorVisitor
Definition: ImageExtractor.h:10
data
uint8_t data[1]
Definition: EtherCATFrame.h:68
armarx::armem::server::ltm::processor::extractor::ImageExtractor::ImageExtractor
ImageExtractor()
Definition: ImageExtractor.h:22
armarx::armem::server::ltm::processor::Extractor
Definition: Extractor.h:15
armarx::armem::server::ltm::processor::extractor::ImageExtractor::merge
aron::data::DictPtr merge(ExtractionResult &encoding) override
Definition: ImageExtractor.cpp:50
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition: Dict.h:41
VariantVisitor.h
armarx::armem::server::ltm::processor::extractor::ImageExtractor::extract
ExtractionResult extract(aron::data::DictPtr &data) override
Definition: ImageExtractor.cpp:36
armarx::armem::server::ltm::processor::extractor::ImageExtractorVisitor::images
std::map< std::string, aron::data::VariantPtr > images
Definition: ImageExtractor.h:13
armarx::aron::type::Descriptor
Descriptor
Definition: Descriptor.h:76