wip compile error fixing

pull/39/head
jaco 10 years ago
parent 8a8302aac4
commit 21d563c02f
  1. 24
      modules/saliency/include/opencv2/saliency/FilterTIG.h
  2. 14
      modules/saliency/include/opencv2/saliency/saliencyBaseClasses.hpp
  3. 1
      modules/saliency/src/motionSaliency.cpp
  4. 1
      modules/saliency/src/objectness.cpp
  5. 2
      modules/saliency/src/saliency_init.cpp
  6. 1
      modules/saliency/src/staticSaliency.cpp

@ -67,20 +67,20 @@ private:
inline float FilterTIG::dot(const INT64 tig1, const INT64 tig2, const INT64 tig4, const INT64 tig8)
{
INT64 bcT1 = POPCNT64(tig1);
INT64 bcT2 = POPCNT64(tig2);
INT64 bcT4 = POPCNT64(tig4);
INT64 bcT8 = POPCNT64(tig8);
INT64 bcT1 = (INT64)POPCNT64(tig1);
INT64 bcT2 = (INT64)POPCNT64(tig2);
INT64 bcT4 = (INT64)POPCNT64(tig4);
INT64 bcT8 = (INT64)POPCNT64(tig8);
INT64 bc01 = (POPCNT64(_bTIGs[0] & tig1) << 1) - bcT1;
INT64 bc02 = ((POPCNT64(_bTIGs[0] & tig2) << 1) - bcT2) << 1;
INT64 bc04 = ((POPCNT64(_bTIGs[0] & tig4) << 1) - bcT4) << 2;
INT64 bc08 = ((POPCNT64(_bTIGs[0] & tig8) << 1) - bcT8) << 3;
INT64 bc01 = (INT64)(POPCNT64(_bTIGs[0] & tig1) << 1) - bcT1;
INT64 bc02 = (INT64)((POPCNT64(_bTIGs[0] & tig2) << 1) - bcT2) << 1;
INT64 bc04 = (INT64)((POPCNT64(_bTIGs[0] & tig4) << 1) - bcT4) << 2;
INT64 bc08 = (INT64)((POPCNT64(_bTIGs[0] & tig8) << 1) - bcT8) << 3;
INT64 bc11 = (POPCNT64(_bTIGs[1] & tig1) << 1) - bcT1;
INT64 bc12 = ((POPCNT64(_bTIGs[1] & tig2) << 1) - bcT2) << 1;
INT64 bc14 = ((POPCNT64(_bTIGs[1] & tig4) << 1) - bcT4) << 2;
INT64 bc18 = ((POPCNT64(_bTIGs[1] & tig8) << 1) - bcT8) << 3;
INT64 bc11 = (INT64)(POPCNT64(_bTIGs[1] & tig1) << 1) - bcT1;
INT64 bc12 = (INT64)((POPCNT64(_bTIGs[1] & tig2) << 1) - bcT2) << 1;
INT64 bc14 = (INT64)((POPCNT64(_bTIGs[1] & tig4) << 1) - bcT4) << 2;
INT64 bc18 = (INT64)((POPCNT64(_bTIGs[1] & tig8) << 1) - bcT8) << 3;
return _coeffs1[0] * (bc01 + bc02 + bc04 + bc08) + _coeffs1[1] * (bc11 + bc12 + bc14 + bc18);
}

@ -94,30 +94,26 @@ class CV_EXPORTS_W StaticSaliency : public virtual Saliency
public:
bool computeBinaryMap( const Mat& saliencyMap, Mat& binaryMap );
AlgorithmInfo* info() const = 0;
protected:
virtual bool computeSaliencyImpl( const InputArray image, OutputArray saliencyMap ) = 0;
virtual bool computeSaliencyImpl( const InputArray image, OutputArray saliencyMap )=0;
};
/************************************ Motion Saliency Base Class ************************************/
class CV_EXPORTS_W MotionSaliency : public virtual Saliency
{
public:
AlgorithmInfo* info() const = 0;
protected:
virtual bool computeSaliencyImpl( const InputArray image, OutputArray saliencyMap ) = 0;
protected:
virtual bool computeSaliencyImpl( const InputArray image, OutputArray saliencyMap )=0;
};
/************************************ Objectness Base Class ************************************/
class CV_EXPORTS_W Objectness : public virtual Saliency
{
public:
AlgorithmInfo* info() const = 0;
protected:
virtual bool computeSaliencyImpl( const InputArray image, OutputArray saliencyMap ) = 0;
virtual bool computeSaliencyImpl( const InputArray image, OutputArray saliencyMap )=0;
};

@ -48,5 +48,4 @@ namespace cv
* Motion Saliency
*/
}/* namespace cv */

@ -48,5 +48,4 @@ namespace cv
* Objectness
*/
}/* namespace cv */

@ -58,11 +58,11 @@ CV_INIT_ALGORITHM(
ObjectnessBING, "SALIENCY.BING",
obj.info()->addParam(obj, "_base", obj._base); obj.info()->addParam(obj, "_NSS", obj._NSS); obj.info()->addParam(obj, "_W", obj._W) );
bool initModule_saliency( void )
{
bool all = true;
all &= !StaticSaliencySpectralResidual_info_auto.name().empty();
//all &= !MotionSaliencySuBSENSE_info_auto.name().empty();
all &= !ObjectnessBING_info_auto.name().empty();
return all;

@ -48,7 +48,6 @@ namespace cv
* StaticSaliency
*/
bool StaticSaliency::computeBinaryMap( const Mat& saliencyMap, Mat& BinaryMap )
{

Loading…
Cancel
Save