DaoAI World C++ SDK INDUSTRIAL 2025.3.0
Loading...
Searching...
No Matches
component_memory.h
Go to the documentation of this file.
1// Copyright (c) 2024, DaoAI Robotics. All rights reserved.
2// Version: 2025.3.0
3
4#pragma once
5#include <filesystem>
6
7namespace DaoAI
8{
9 namespace DeepLearning
10 {
11 namespace Vision
12 {
13 class UnsupervisedDefectSegmentationImpl;
14 }
15
16 class ComponentMemoryImpl;
17
19 {
20 public:
22
23 ComponentMemory(std::shared_ptr<ComponentMemoryImpl> impl);
24
29 DAOAI_API ComponentMemory(const std::filesystem::path& file_path);
30
35 DAOAI_API void setImageThreshold(const float& value);
36
42
47 DAOAI_API void setPixelThreshold(const float& value);
48
54
59 DAOAI_API void save(const std::filesystem::path& save_path) const;
60
65 DAOAI_API void load(const std::filesystem::path& file_path);
66
67 private:
68 std::shared_ptr<ComponentMemoryImpl> model_instance_ = nullptr;
69
71 };
72 }
73}
#define DAOAI_API
Definition API_EXPORT.h:13
Definition component_memory.h:19
DAOAI_API float getImageThreshold() const
get the image threshold
DAOAI_API void load(const std::filesystem::path &file_path)
Load the component memory from file path.
ComponentMemory(std::shared_ptr< ComponentMemoryImpl > impl)
DAOAI_API void setImageThreshold(const float &value)
set the image threshold
DAOAI_API ComponentMemory(const std::filesystem::path &file_path)
Constructor that loads a component memory from file path.
DAOAI_API void setPixelThreshold(const float &value)
set the pixel threshold
DAOAI_API void save(const std::filesystem::path &save_path) const
Save the component memory to file path.
DAOAI_API float getPixelThreshold() const
get the pixel threshold
friend class Vision::UnsupervisedDefectSegmentationImpl
Definition component_memory.h:70
Definition common.h:14