project(traincascade)
set(the_target opencv_traincascade)
+ocv_warnings_disable(CMAKE_CXX_FLAGS -Woverloaded-virtual)
+
ocv_target_include_directories(${the_target} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" "${OpenCV_SOURCE_DIR}/include/opencv")
ocv_target_include_modules_recurse(${the_target} ${OPENCV_TRAINCASCADE_DEPS})
use_roi = GET_PARAM(2);
}
- virtual void generateTestData(bool with_val_in_range = false)
+ void generateTestData(bool with_val_in_range = false)
{
const int type = CV_MAKE_TYPE(depth, cn);
{
int nx, ny;
- virtual void generateTestData()
+ void generateTestData()
{
const int type = CV_MAKE_TYPE(depth, cn);
use_roi = GET_PARAM(3);
}
- virtual void generateTestData()
+ void generateTestData()
{
const int type = CV_MAKE_TYPE(depth, cn);
use_roi = GET_PARAM(2);
}
- virtual void generateTestData()
+ void generateTestData()
{
const int stype = CV_MAKE_TYPE(depth, cn);
const int dtype = CV_MAKE_TYPE(CV_8U, cn);
use_roi = GET_PARAM(1);
}
- virtual void generateTestData()
+ void generateTestData()
{
const int type = CV_MAKE_TYPE(CV_32F, cn);
use_roi = GET_PARAM(3);
}
- virtual void generateTestData()
+ void generateTestData()
{
const int stype = CV_MAKE_TYPE(sdepth, cn);
dtype = CV_MAKE_TYPE(ddepth, cn);
use_roi = GET_PARAM(3);
}
- virtual void generateTestData()
+ void generateTestData()
{
Size roiSize = randomSize(1, MAX_VALUE);
Border srcBorder = randomBorder(0, use_roi ? MAX_VALUE : 0);
accelType = GET_PARAM(2);
}
- virtual void generateTestData()
+ void generateTestData()
{
Size matrix_Size = randomSize(2, 100);
const double upValue = 100;
type=CV_MAKE_TYPE(CV_8U, GET_PARAM(0));
}
- virtual void generateTestData()
+ void generateTestData()
{
Size matrix_Size = randomSize(2, 100);
hpp32u pitch, size;
uimages_roi.resize(N);
}
- virtual void random_roi()
+ void random_roi()
{
Size roiSize = randomSize(1, MAX_VALUE);
useRoi = GET_PARAM(0);
}
- virtual void random_roi()
+ void random_roi()
{
Size roiSize = randomSize(1, MAX_VALUE);
threshold = GET_PARAM(2);
}
- virtual void generateTestData()
+ void generateTestData()
{
src_size = randomSize(500, 1920);
src.create(src_size, CV_8UC1);
src.copyTo(usrc);
}
- virtual void readRealTestData()
+ void readRealTestData()
{
Mat img = readImage("shared/pic5.png", IMREAD_GRAYSCALE);
Canny(img, src, 100, 150, 3);
src.copyTo(usrc);
}
- virtual void Near(double eps = 0.)
+ void Near(double eps = 0.)
{
EXPECT_EQ(dst.size(), udst.size());
maxGap = GET_PARAM(2);
}
- virtual void readRealTestData()
+ void readRealTestData()
{
Mat img = readImage("shared/pic5.png", IMREAD_GRAYSCALE);
Canny(img, src, 50, 200, 3);
src.copyTo(usrc);
}
- virtual void Near(double eps = 0.)
+ void Near(double eps = 0.)
{
Mat lines_gpu = udst.getMat(ACCESS_READ);
useRoi = GET_PARAM(3);
}
- virtual void random_roi()
+ void random_roi()
{
Size roiSize = randomSize(1, MAX_VALUE);
Border srcBorder = randomBorder(0, useRoi ? MAX_VALUE : 0);
struct CornerTestBase :
public ImgprocTestBase
{
- virtual void random_roi()
+ void random_roi()
{
Mat image = readImageType("../gpu/stereobm/aloe-L.png", type);
ASSERT_FALSE(image.empty());
useRoi = GET_PARAM(3);
}
- virtual void random_roi()
+ void random_roi()
{
ASSERT_EQ(CV_MAT_CN(type), 1);
use_roi = GET_PARAM(3);
}
- virtual void generateTestData()
+ void generateTestData()
{
Size image_roiSize = randomSize(2, 100);
Size templ_roiSize = Size(randomInt(1, image_roiSize.width), randomInt(1, image_roiSize.height));
use_roi = GET_PARAM(3);
}
- virtual void generateTestData()
+ void generateTestData()
{
Size roiSize = randomSize(1, MAX_VALUE);
Border srcBorder = randomBorder(0, use_roi ? MAX_VALUE : 0);
# workarounding lack of `__attribute__ ((visibility("default")))` in jni_md.h/JNIEXPORT
string(REPLACE "-fvisibility=hidden" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+ocv_warnings_disable(CMAKE_CXX_FLAGS -Wunused-const-variable)
ocv_add_library(${the_module} SHARED ${handwritten_h_sources} ${handwritten_cpp_sources} ${generated_cpp_sources}
${copied_files}
h[i] = 3.0f + 0.5f*i;
}
- virtual void generateTestData()
+ void generateTestData()
{
const int type = CV_8UC(cn);
Mat image;
string(REPLACE "/W4" "/W3" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
endif()
+ocv_warnings_disable(CMAKE_CXX_FLAGS -Woverloaded-virtual -Wunused-private-field)
+
if(MSVC AND NOT BUILD_SHARED_LIBS)
set_target_properties(${the_module} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /DEBUG")
endif()
UMat usrc, udst, uxmap, uymap;
Mat K, R;
- virtual void generateTestData()
+ void generateTestData()
{
Size size = randomSize(1, MAX_VALUE);
} \
private: int val_; \
}; \
- inline void PrintTo(const class_name& t, std::ostream* os) { t.PrintTo(os); } }
+ static inline void PrintTo(const class_name& t, std::ostream* os) { t.PrintTo(os); } }
#define CV_FLAGS(class_name, ...) \
namespace { \
} \
private: int val_; \
}; \
- inline void PrintTo(const class_name& t, std::ostream* os) { t.PrintTo(os); } }
+ static inline void PrintTo(const class_name& t, std::ostream* os) { t.PrintTo(os); } }
CV_ENUM(MatDepth, CV_8U, CV_8S, CV_16U, CV_16S, CV_32S, CV_32F, CV_64F, CV_USRTYPE1)
// of them.
const char kPathSeparator = '\\';
const char kAlternatePathSeparator = '/';
-const char kPathSeparatorString[] = "\\";
+//const char kPathSeparatorString[] = "\\";
const char kAlternatePathSeparatorString[] = "/";
# if GTEST_OS_WINDOWS_MOBILE
// Windows CE doesn't have a current directory. You should not use
# endif // GTEST_OS_WINDOWS_MOBILE
#else
const char kPathSeparator = '/';
-const char kPathSeparatorString[] = "/";
+//const char kPathSeparatorString[] = "/";
const char kCurrentDirectoryString[] = "./";
#endif // GTEST_OS_WINDOWS
namespace cvtest {
namespace ocl {
-///////////// FarnebackOpticalFlow ////////////////////////
-CV_ENUM(farneFlagType, 0, OPTFLOW_FARNEBACK_GAUSSIAN)
-
typedef tuple< int > PyrLKOpticalFlowParams;
typedef TestBaseWithParam<PyrLKOpticalFlowParams> PyrLKOpticalFlowFixture;
}
+#ifdef HAVE_OPENGL
const int win_width = 800;
const int win_height = 640;
+#endif
bool rotateEnable=true;
bool keyPressed=false;
kbest->setOutlierRejector(outlierRejector);
return kbest;
}
+#else
+ CV_Assert(gpu == false && "CUDA modules are not available");
#endif
Ptr<KeypointBasedMotionEstimator> kbest = makePtr<KeypointBasedMotionEstimator>(est);
kbest->setOutlierRejector(outlierRejector);
return kbest;
}
+#else
+ CV_Assert(gpu == false && "CUDA modules are not available");
#endif
Ptr<KeypointBasedMotionEstimator> kbest = makePtr<KeypointBasedMotionEstimator>(est);