Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
ec8637a9
Commit
ec8637a9
authored
Mar 11, 2013
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build errors
parent
13f402a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
spinimages.cpp
modules/contrib/src/spinimages.cpp
+7
-7
No files found.
modules/contrib/src/spinimages.cpp
View file @
ec8637a9
...
@@ -85,10 +85,10 @@ namespace
...
@@ -85,10 +85,10 @@ namespace
};
};
size_t
colors_mum
=
sizeof
(
colors
)
/
sizeof
(
colors
[
0
]);
size_t
colors_mum
=
sizeof
(
colors
)
/
sizeof
(
colors
[
0
]);
#if (defined __cplusplus && __cplusplus > 199711L) || defined _STLPORT_MAJOR
template
<
class
FwIt
,
class
T
>
inline
void
_iota
(
FwIt
first
,
FwIt
last
,
T
value
)
#else
{
template
<
class
FwIt
,
class
T
>
void
iota
(
FwIt
first
,
FwIt
last
,
T
value
)
{
while
(
first
!=
last
)
*
first
++
=
value
++
;
}
while
(
first
!=
last
)
*
first
++
=
value
++
;
#endif
}
void
computeNormals
(
const
Octree
&
Octree
,
const
vector
<
Point3f
>&
centers
,
vector
<
Point3f
>&
normals
,
void
computeNormals
(
const
Octree
&
Octree
,
const
vector
<
Point3f
>&
centers
,
vector
<
Point3f
>&
normals
,
vector
<
uchar
>&
mask
,
float
normalRadius
,
int
minNeighbors
=
20
)
vector
<
uchar
>&
mask
,
float
normalRadius
,
int
minNeighbors
=
20
)
...
@@ -799,14 +799,14 @@ void cv::SpinImageModel::selectRandomSubset(float ratio)
...
@@ -799,14 +799,14 @@ void cv::SpinImageModel::selectRandomSubset(float ratio)
else
if
(
setSize
==
vtxSize
)
else
if
(
setSize
==
vtxSize
)
{
{
subset
.
resize
(
vtxSize
);
subset
.
resize
(
vtxSize
);
iota
(
subset
.
begin
(),
subset
.
end
(),
0
);
_
iota
(
subset
.
begin
(),
subset
.
end
(),
0
);
}
}
else
else
{
{
RNG
&
rnd
=
theRNG
();
RNG
&
rnd
=
theRNG
();
vector
<
size_t
>
left
(
vtxSize
);
vector
<
size_t
>
left
(
vtxSize
);
iota
(
left
.
begin
(),
left
.
end
(),
(
size_t
)
0
);
_
iota
(
left
.
begin
(),
left
.
end
(),
(
size_t
)
0
);
subset
.
resize
(
setSize
);
subset
.
resize
(
setSize
);
for
(
size_t
i
=
0
;
i
<
setSize
;
++
i
)
for
(
size_t
i
=
0
;
i
<
setSize
;
++
i
)
...
@@ -879,7 +879,7 @@ void cv::SpinImageModel::compute()
...
@@ -879,7 +879,7 @@ void cv::SpinImageModel::compute()
{
{
mesh
.
computeNormals
(
normalRadius
,
minNeighbors
);
mesh
.
computeNormals
(
normalRadius
,
minNeighbors
);
subset
.
resize
(
mesh
.
vtx
.
size
());
subset
.
resize
(
mesh
.
vtx
.
size
());
iota
(
subset
.
begin
(),
subset
.
end
(),
0
);
_
iota
(
subset
.
begin
(),
subset
.
end
(),
0
);
}
}
else
else
mesh
.
computeNormals
(
subset
,
normalRadius
,
minNeighbors
);
mesh
.
computeNormals
(
subset
,
normalRadius
,
minNeighbors
);
...
...
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