mv_machine_learning: add template to Adapter::create() function
authorVibhav Aggarwal <v.aggarwal@samsung.com>
Tue, 14 Nov 2023 05:04:39 +0000 (14:04 +0900)
committerKwanghoon Son <k.son@samsung.com>
Wed, 6 Dec 2023 01:36:46 +0000 (10:36 +0900)
commitea3754dec9041ca3c847afbea7351a51f8e07ec0
treee6992448a76f7c915275cab06e25070ed36cb21b
parentfd5713923e71242a60f443a9dd7096a21c60d77e
mv_machine_learning: add template to Adapter::create() function

[Issue type] code refactoring

Convert the Adapter::create() function into a template function
to avoid nesting of switch cases for data type and task type.
This patch applies this change to ObjectDetection and
ObjectDetection3d task groups.

Change-Id: I1c65f844f8dd6bb646d3806fa898161db3c347e9
Signed-off-by: Vibhav Aggarwal <v.aggarwal@samsung.com>
mv_machine_learning/object_detection/include/face_detection_adapter.h
mv_machine_learning/object_detection/include/object_detection_adapter.h
mv_machine_learning/object_detection/src/face_detection_adapter.cpp
mv_machine_learning/object_detection/src/object_detection_adapter.cpp
mv_machine_learning/object_detection_3d/include/iobject_detection_3d.h
mv_machine_learning/object_detection_3d/include/object_detection_3d_adapter.h
mv_machine_learning/object_detection_3d/src/object_detection_3d_adapter.cpp