[Issue type] refactoring
ObjectDecoder class needs access all of Info member variables.
So all of Info class variables need to get method because it is
just struct of data. Since Info classes not have any special
member function, struct is more suitable for data access.
Change-Id: Ifa470fbb17344451584e0b93ad6faf859c021eba
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
DimInfo dimInfo;
};
-class BoxInfo
+struct BoxInfo
{
-private:
std::vector<std::string> names;
DimInfo dimInfo;
inference_box_type_e type = INFERENCE_BOX_TYPE_ORIGIN_LEFTTOP; // 0:L-T-R-B, 1: Cx-Cy-W-H
{ "YOLO_ANCHOR", INFERENCE_BOX_DECODING_TYPE_YOLO_ANCHOR }
};
-public:
~BoxInfo() = default;
std::string GetName();
int mode;
};
-class DecodeInfo
+struct DecodeInfo
{
-private:
AnchorParam anchorParam;
std::vector<cv::Rect2f> anchorBoxes;
CellParam cellParam;
RotateParam rotParam;
RoiOptionParam roiOptParam;
-public:
DecodeInfo()
{
cellParam.type = INFERENCE_SCORE_TYPE_NORMAL;
{
namespace inference
{
-class DimInfo
+struct DimInfo
{
-private:
std::vector<int> dims;
-public:
std::vector<int> GetValidIndexAll() const
{
LOGI("ENTER");
{}
};
-class ScoreInfo
+struct ScoreInfo
{
-private:
std::vector<std::string> names;
DimInfo dimInfo;
double threshold = 0.0;
std::shared_ptr<DeQuantization> deQuantization;
std::map<std::string, inference_score_type_e> supportedScoreTypes = { { "NORMAL", INFERENCE_SCORE_TYPE_NORMAL },
{ "SIGMOID", INFERENCE_SCORE_TYPE_SIGMOID } };
-
-public:
~ScoreInfo() = default;
std::string GetName()