mv_machine_learning: move member functions to private
authorInki Dae <inki.dae@samsung.com>
Mon, 25 Sep 2023 07:27:41 +0000 (16:27 +0900)
committerKwanghoon Son <k.son@samsung.com>
Wed, 25 Oct 2023 01:54:03 +0000 (10:54 +0900)
[Issue type] : code cleanup

Move two member functions inference and preprocess from protected to private.
They are used only in LandmarkDetection class.

Change-Id: I5890575da6c926fcfb6c164c27e071bea68a3752
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/landmark_detection/include/landmark_detection.h

index a73520d..2b82356 100644 (file)
@@ -39,6 +39,10 @@ private:
        void getEngineList();
        void getDeviceList(const char *engine_type);
 
+       template<typename T>
+       void preprocess(mv_source_h &mv_src, std::shared_ptr<MetaInfo> metaInfo, std::vector<T> &inputVector);
+       template<typename T> void inference(std::vector<std::vector<T> > &inputVectors);
+
        LandmarkDetectionTaskType _task_type;
 
 protected:
@@ -59,9 +63,6 @@ protected:
 
        void getOutputNames(std::vector<std::string> &names);
        void getOutputTensor(std::string target_name, std::vector<float> &tensor);
-       template<typename T>
-       void preprocess(mv_source_h &mv_src, std::shared_ptr<MetaInfo> metaInfo, std::vector<T> &inputVector);
-       template<typename T> void inference(std::vector<std::vector<T> > &inputVectors);
 
 public:
        LandmarkDetection(LandmarkDetectionTaskType task_type);