PngConverter.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Base Class
4 #include "../../../../extractor/imageExtractor/ImageExtractor.h"
5 #include "../Converter.h"
6 
8 {
9  class PngConverter : public ImageConverter
10  {
11  public:
12  static const constexpr char* NAME = "PngConverter";
13 
16  "image",
17  ".png",
18  std::make_unique<extractor::ImageExtractor>())
19  {
20  }
21 
22  void configure(const nlohmann::json& json) override;
23 
24 
25  protected:
26  ConversionResult _convert(const aron::data::NDArrayPtr& data) final;
27  aron::data::NDArrayPtr _convert(const ConversionResult& data,
28  const armarx::aron::Path& p) final;
29  };
30 } // namespace armarx::armem::server::ltm::processor::converter::data::image
armarx::armem::server::ltm::processor::converter::data::image::PngConverter::configure
void configure(const nlohmann::json &json) override
Definition: PngConverter.cpp:13
armarx::aron::data::NDArrayPtr
std::shared_ptr< NDArray > NDArrayPtr
Definition: NDArray.h:46
armarx::armem::server::ltm::processor::converter::data::ImageConverter
Definition: Converter.h:16
armarx::armem::server::ltm::processor::converter::data::image::PngConverter::_convert
ConversionResult _convert(const aron::data::NDArrayPtr &data) final
Definition: PngConverter.cpp:18
armarx::aron::Path
The Path class.
Definition: Path.h:36
armarx::armem::server::ltm::processor::converter::data::image::PngConverter::NAME
static const constexpr char * NAME
Definition: PngConverter.h:12
armarx::armem::server::ltm::processor::converter::data::image::PngConverter::PngConverter
PngConverter()
Definition: PngConverter.h:14
data
uint8_t data[1]
Definition: EtherCATFrame.h:68
armarx::armem::server::ltm::processor::converter::data::image::PngConverter
Definition: PngConverter.h:9
std
Definition: Application.h:66
armarx::armem::server::ltm::processor::converter::data::image
Definition: ExrConverter.cpp:10
armarx::armem::server::ltm::processor::DataConverter::extractor
const std::unique_ptr< Extractor > extractor
Definition: Converter.h:54
armarx::armem::server::ltm::processor::DataConverter::ConverterType
ConverterType
Definition: Converter.h:19