Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
c1f27e9a
Commit
c1f27e9a
authored
Sep 10, 2015
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some mingw-w64 compilation issues
parent
88a72a05
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
util.cpp
modules/datasets/src/util.cpp
+3
-3
bitarray.hpp
modules/line_descriptor/src/bitarray.hpp
+1
-1
bitops.hpp
modules/line_descriptor/src/bitops.hpp
+1
-1
precomp.hpp
modules/line_descriptor/src/precomp.hpp
+1
-1
types.hpp
modules/line_descriptor/src/types.hpp
+1
-1
icp.cpp
modules/surface_matching/src/icp.cpp
+3
-3
No files found.
modules/datasets/src/util.cpp
View file @
c1f27e9a
...
...
@@ -45,7 +45,7 @@
#include <sstream>
#if
def __GNUC__
#if
ndef _WIN32
#include <unistd.h>
#include <dirent.h>
#include <sys/stat.h>
...
...
@@ -73,7 +73,7 @@ void split(const string &s, vector<string> &elems, char delim)
void
createDirectory
(
const
string
&
path
)
{
#if
def __GNUC__
#if
ndef _WIN32
mkdir
(
path
.
c_str
(),
S_IRWXU
|
S_IRWXG
|
S_IROTH
|
S_IXOTH
);
#else
mkdir
(
path
.
c_str
());
...
...
@@ -82,7 +82,7 @@ void createDirectory(const string &path)
void
getDirList
(
const
string
&
dirName
,
vector
<
string
>
&
fileNames
)
{
#if
def __GNUC__
#if
ndef _WIN32
struct
dirent
**
namelist
;
int
n
=
scandir
(
dirName
.
c_str
(),
&
namelist
,
NULL
,
alphasort
);
for
(
int
i
=
0
;
i
<
n
;
++
i
)
...
...
modules/line_descriptor/src/bitarray.hpp
View file @
c1f27e9a
...
...
@@ -43,7 +43,7 @@
#ifndef __OPENCV_BITARRAY_HPP
#define __OPENCV_BITARRAY_HPP
#ifdef _
WIN32
#ifdef _
MSC_VER
#pragma warning( disable : 4267 )
#endif
...
...
modules/line_descriptor/src/bitops.hpp
View file @
c1f27e9a
...
...
@@ -45,7 +45,7 @@
#include "precomp.hpp"
#ifdef _
WIN32
#ifdef _
MSC_VER
# include <intrin.h>
# define popcnt __popcnt
# pragma warning( disable : 4267 )
...
...
modules/line_descriptor/src/precomp.hpp
View file @
c1f27e9a
...
...
@@ -42,7 +42,7 @@
#ifndef __OPENCV_PRECOMP_H__
#define __OPENCV_PRECOMP_H__
#ifdef _
WIN32
#ifdef _
MSC_VER
#pragma warning( disable : 4267 )
#endif
...
...
modules/line_descriptor/src/types.hpp
View file @
c1f27e9a
...
...
@@ -49,7 +49,7 @@
#ifndef __OPENCV_TYPES_HPP
#define __OPENCV_TYPES_HPP
#ifdef _
WIN32
#ifdef _
MSC_VER
#pragma warning( disable : 4267 )
#endif
...
...
modules/surface_matching/src/icp.cpp
View file @
c1f27e9a
...
...
@@ -425,14 +425,14 @@ int ICP::registerModelToScene(const Mat& srcPC, const Mat& dstPC, double& residu
if
(
node
)
{
// select the first node
long
idx
=
reinterpret_cast
<
long
>
(
node
->
data
)
-
1
,
dn
=
0
;
size_t
idx
=
reinterpret_cast
<
size_t
>
(
node
->
data
)
-
1
,
dn
=
0
;
int
dup
=
(
int
)
node
->
key
-
1
;
long
minIdxD
=
idx
;
size_t
minIdxD
=
idx
;
float
minDist
=
distances
[
idx
];
while
(
node
)
{
idx
=
reinterpret_cast
<
long
>
(
node
->
data
)
-
1
;
idx
=
reinterpret_cast
<
size_t
>
(
node
->
data
)
-
1
;
if
(
distances
[
idx
]
<
minDist
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment