Commit ec4db04a authored by Nicu Stiurca's avatar Nicu Stiurca

some fixes to get CVV module compiling with Visual Studio 2013

parent 5409d5ad
......@@ -4,7 +4,12 @@ if(NOT HAVE_QT5)
endif()
# we need C++11 and want warnings:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -pedantic")
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Qstd=c++11 /W4")
add_definitions(/D__func__=__FUNCTION__)
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -pedantic")
endif()
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wshadow -Wmissing-declarations)
# Qt5
......
......@@ -12,8 +12,8 @@ namespace impl
FilterCall::FilterCall(cv::InputArray in, cv::InputArray out,
impl::CallMetaData data, QString type,
QString description, QString requestedView)
: Call{ data, std::move(type),
std::move(description), std::move(requestedView) },
: Call( data, std::move(type),
std::move(description), std::move(requestedView) ),
input_{ in.getMat().clone() }, output_{ out.getMat().clone() }
{
}
......
......@@ -18,8 +18,8 @@ MatchCall::MatchCall(cv::InputArray img1, std::vector<cv::KeyPoint> keypoints1,
std::vector<cv::DMatch> matches, impl::CallMetaData data,
QString type, QString description, QString requestedView,
bool useTrainDescriptor)
: Call{ data, std::move(type),
std::move(description), std::move(requestedView) },
: Call( data, std::move(type),
std::move(description), std::move(requestedView) ),
img1_{ img1.getMat().clone() }, keypoints1_{ std::move(keypoints1) },
img2_{ img2.getMat().clone() }, keypoints2_{ std::move(keypoints2) },
matches_{ std::move(matches) }, usesTrainDescriptor_{ useTrainDescriptor }
......
......@@ -14,8 +14,8 @@ namespace impl
SingleImageCall::SingleImageCall(cv::InputArray img, impl::CallMetaData data,
QString type, QString description,
QString requestedView)
: Call{ data, std::move(type),
std::move(description), std::move(requestedView) },
: Call( data, std::move(type),
std::move(description), std::move(requestedView) ),
img{ img.getMat().clone() }
{
}
......
#ifndef CVVISUAL_COLOR_UTIL
#define CVVISUAL_COLOR_UTIL
#include <cstdint>
#include <vector>
#include <QColor>
......
......@@ -4,6 +4,7 @@
#include <stdexcept>
#include <thread>
#include <functional>
#include <memory>
#include <QDesktopServices>
#include <QUrl>
......
......@@ -19,7 +19,7 @@ namespace view
DefaultFilterView::DefaultFilterView(const std::vector<cv::Mat> &images,
QWidget *parent)
: FilterView{ parent }
: FilterView( parent )
{
auto layout = util::make_unique<QHBoxLayout>();
......
......@@ -31,7 +31,7 @@ namespace view
// neuer Konstruktor
DualFilterView::DualFilterView(std::array<cv::Mat, 2> images, QWidget *parent)
: FilterView{ parent }, rawImages_(images)
: FilterView( parent ), rawImages_(images)
{
auto layout = util::make_unique<QHBoxLayout>();
auto imageLayout = util::make_unique<QHBoxLayout>();
......
......@@ -24,7 +24,7 @@ LineMatchView::LineMatchView(std::vector<cv::KeyPoint> leftKeyPoints,
std::vector<cv::KeyPoint> rightKeyPoints,
std::vector<cv::DMatch> matches, cv::Mat leftIm,
cv::Mat rightIm, bool usetrainIdx, QWidget *parent)
: MatchView{ parent }
: MatchView( parent )
{
std::vector<cv::KeyPoint> allkeypoints;
for(auto key:rightKeyPoints)
......
......@@ -21,7 +21,7 @@ PointMatchView::PointMatchView(std::vector<cv::KeyPoint> leftKeyPoints,
std::vector<cv::DMatch> matches, cv::Mat leftIm,
cv::Mat rightIm, bool usetrainIdx,
QWidget *parent)
: MatchView{ parent }
: MatchView( parent )
{
auto layout = util::make_unique<QHBoxLayout>();
auto accor = util::make_unique<qtutil::Accordion>();
......
......@@ -20,7 +20,7 @@ namespace view
SingleFilterView::SingleFilterView(const std::vector<cv::Mat> &images,
QWidget *parent)
: FilterView{ parent }
: FilterView( parent )
{
auto imwid = util::make_unique<QWidget>();
auto accor = util::make_unique<qtutil::Accordion>();
......
......@@ -19,7 +19,7 @@ TranslationMatchView::TranslationMatchView(
std::vector<cv::KeyPoint> leftKeyPoints,
std::vector<cv::KeyPoint> rightKeyPoints, std::vector<cv::DMatch> matches,
cv::Mat leftIm, cv::Mat rightIm, bool usetrainIdx, QWidget *parent)
: MatchView{ parent }
: MatchView( parent )
{
std::vector<cv::KeyPoint> allkeypoints;
for(auto key:rightKeyPoints)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment