Commits

iorodeo  committed 2997562

Worked on adding pixel feature vector parameters to json configuration file.

  • Participants
  • Parent commits 61aa276

Comments (0)

Files changed (2)

File src/demo/fly_sorter/parameters.cpp

     binParam = DEFAULT_BIN_PARAM;
 };
 
+QVariantMap PixelFeatureVectorParam::toMap()
+{
+    QVariantMap paramMap;
+    return paramMap;
+}
+
+RtnStatus PixelFeatureVectorParam::fromMap(QVariantMap paramMap)
+{
+    RtnStatus rtnStatus;
+    if (paramMap.isEmpty())
+    {
+        rtnStatus.success = false;
+        rtnStatus.message = QString("pixel feature vector parameter map is empty");
+        return rtnStatus;
+    }
+    // Get gradNormRadius
+    // ----------------------------
+    // unsigned int gradNormRadius;
+
+    // Get gradNormConst
+    // ----------------------------
+    // double gradNormConst;
+
+    // Get fillBndryErodeRadius
+    // ----------------------------
+    // unsigned int fillBndryErodeRadius;
+
+    // Get colorEdgeVector
+    // ----------------------------
+    // std::vector<cv::Scalar> colorEdgeVector;
+
+    // Get gradMagEdgeVector
+    // ----------------------------
+    // std::vector<float> gradMagEdgeVector;     
+
+    // Get gradOriCentVectory
+    // ----------------------------
+    // std::vector<float> gradOriCentVector;
+
+    // Get binParam
+    // ----------------------------
+    // std::vector<BinParam> binParam;
+
+    return rtnStatus;
+}
+
 // HogPositionFitterParam
 // ----------------------------------------------------------------------------
 

File src/demo/fly_sorter/parameters.hpp

         static std::vector<BinParam> createDefaultBinParam();
 
         PixelFeatureVectorParam();
+        QVariantMap toMap();
+        RtnStatus fromMap(QVariantMap paramMap);
 };
 
 
         double padBorder;
         static const double DEFAULT_PAD_BORDER;
 
-        // TO DO
         cv::Scalar fillValuesLUV;
         static const cv::Scalar DEFAULT_FILL_VALUES_LUV;