|
@@ -1492,179 +1492,4 @@ public:
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-/**
|
|
|
- * @brief Ray features
|
|
|
- */
|
|
|
-/**
|
|
|
- * @brief Ray Distance-Difference features
|
|
|
- */
|
|
|
-class RayDiff3D: public Operation3D
|
|
|
-{
|
|
|
-public:
|
|
|
- /**
|
|
|
- * @brief interface for feature computation
|
|
|
- * @param feats features
|
|
|
- * @param x current x position
|
|
|
- * @param y current y position
|
|
|
- * @param z current z position
|
|
|
- * @return double distance
|
|
|
- **/
|
|
|
- virtual double getVal ( const Features &feats, const int &x, const int &y, const int &z );
|
|
|
-
|
|
|
- /**
|
|
|
- * @brief clone operation instead of copy constructor (copy constructor does not work)
|
|
|
- **/
|
|
|
- virtual Operation3D* clone()
|
|
|
- {
|
|
|
- return new RayDiff3D();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @brief print some infos about operation extraction type
|
|
|
- * @return string feature type
|
|
|
- **/
|
|
|
- virtual std::string writeInfos()
|
|
|
- {
|
|
|
- return "(-)RayDiff " + Operation3D::writeInfos();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @brief return operation type (for store and restore)
|
|
|
- * @return OperationTypes
|
|
|
- **/
|
|
|
- virtual OperationTypes getOps()
|
|
|
- {
|
|
|
- return RAYDIFF;
|
|
|
- }
|
|
|
-};
|
|
|
-
|
|
|
-/**
|
|
|
- * @brief Ray Distance features
|
|
|
- */
|
|
|
-class RayDist3D: public Operation3D
|
|
|
-{
|
|
|
-public:
|
|
|
- /**
|
|
|
- * @brief interface for feature computation
|
|
|
- * @param feats features
|
|
|
- * @param x current x position
|
|
|
- * @param y current y position
|
|
|
- * @param z current z position
|
|
|
- * @return double distance
|
|
|
- **/
|
|
|
- virtual double getVal ( const Features &feats, const int &x, const int &y, const int &z );
|
|
|
-
|
|
|
- /**
|
|
|
- * @brief clone operation instead of copy constructor (copy constructor does not work)
|
|
|
- **/
|
|
|
- virtual Operation3D* clone()
|
|
|
- {
|
|
|
- return new RayDist3D();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @brief print some infos about operation extraction type
|
|
|
- * @return string feature type
|
|
|
- **/
|
|
|
- virtual std::string writeInfos()
|
|
|
- {
|
|
|
- return "(-)RayDist " + Operation3D::writeInfos();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @brief return operation type (for store and restore)
|
|
|
- * @return OperationTypes
|
|
|
- **/
|
|
|
- virtual OperationTypes getOps()
|
|
|
- {
|
|
|
- return RAYDIST;
|
|
|
- }
|
|
|
-};
|
|
|
-
|
|
|
-/**
|
|
|
- * @brief Ray Orientation features
|
|
|
- */
|
|
|
-class RayOrient3D: public Operation3D
|
|
|
-{
|
|
|
-public:
|
|
|
- /**
|
|
|
- * @brief interface for feature computation
|
|
|
- * @param feats features
|
|
|
- * @param x current x position
|
|
|
- * @param y current y position
|
|
|
- * @param z current z position
|
|
|
- * @return double distance
|
|
|
- **/
|
|
|
- virtual double getVal ( const Features &feats, const int &x, const int &y, const int &z );
|
|
|
-
|
|
|
- /**
|
|
|
- * @brief clone operation instead of copy constructor (copy constructor does not work)
|
|
|
- **/
|
|
|
- virtual Operation3D* clone()
|
|
|
- {
|
|
|
- return new RayOrient3D();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @brief print some infos about operation extraction type
|
|
|
- * @return string feature type
|
|
|
- **/
|
|
|
- virtual std::string writeInfos()
|
|
|
- {
|
|
|
- return "(-)RayOrient " + Operation3D::writeInfos();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @brief return operation type (for store and restore)
|
|
|
- * @return OperationTypes
|
|
|
- **/
|
|
|
- virtual OperationTypes getOps()
|
|
|
- {
|
|
|
- return RAYORIENT;
|
|
|
- }
|
|
|
-};
|
|
|
-
|
|
|
-/**
|
|
|
- * @brief Ray Norm features
|
|
|
- */
|
|
|
-class RayNorm3D: public Operation3D
|
|
|
-{
|
|
|
-public:
|
|
|
- /**
|
|
|
- * @brief interface for feature computation
|
|
|
- * @param feats features
|
|
|
- * @param x current x position
|
|
|
- * @param y current y position
|
|
|
- * @param z current z position
|
|
|
- * @return double distance
|
|
|
- **/
|
|
|
- virtual double getVal ( const Features &feats, const int &x, const int &y, const int &z );
|
|
|
-
|
|
|
- /**
|
|
|
- * @brief clone operation instead of copy constructor (copy constructor does not work)
|
|
|
- **/
|
|
|
- virtual Operation3D* clone()
|
|
|
- {
|
|
|
- return new RayNorm3D();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @brief print some infos about operation extraction type
|
|
|
- * @return string feature type
|
|
|
- **/
|
|
|
- virtual std::string writeInfos()
|
|
|
- {
|
|
|
- return "(-)RayNorm " + Operation3D::writeInfos();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @brief return operation type (for store and restore)
|
|
|
- * @return OperationTypes
|
|
|
- **/
|
|
|
- virtual OperationTypes getOps()
|
|
|
- {
|
|
|
- return RAYNORM;
|
|
|
- }
|
|
|
-};
|
|
|
-
|
|
|
} //end namespace
|