Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
CAMP
campvis-public
Commits
cba0fd9b
Commit
cba0fd9b
authored
Jan 28, 2014
by
Christian Schulte zu Berge
Browse files
fixed some implicit cast warnings
parent
72597c1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/preprocessing/processors/glgradientvolumegenerator.cpp
View file @
cba0fd9b
...
...
@@ -95,7 +95,7 @@ namespace campvis {
glViewport
(
0
,
0
,
static_cast
<
GLsizei
>
(
size
.
x
),
static_cast
<
GLsizei
>
(
size
.
y
));
// render quad to compute difference measure by shader
for
(
tgt
::
svec3
::
ElemType
z
=
0
;
z
<
size
.
z
;
++
z
)
{
for
(
int
z
=
0
;
z
<
static_cast
<
int
>
(
size
.
z
)
;
++
z
)
{
float
zTexCoord
=
static_cast
<
float
>
(
z
)
/
static_cast
<
float
>
(
size
.
z
)
+
.5
f
/
static_cast
<
float
>
(
size
.
z
);
_shader
->
setUniform
(
"_zTexCoord"
,
zTexCoord
);
_fbo
->
attachTexture
(
resultTexture
,
GL_COLOR_ATTACHMENT0
,
0
,
z
);
...
...
modules/randomwalk/ext/RandomWalksLib/RandomWalksCore.cpp
View file @
cba0fd9b
...
...
@@ -69,8 +69,8 @@ void RandomWalksCore::setLabeling(const std::vector<int> * seeds, const std::ve
void
RandomWalksCore
::
assemble_Lu_b
()
{
const
int
n
=
seeds
->
size
();
// # marked nodes
const
int
q
=
numel
-
seeds
->
size
();
// # unmarked nodes
const
int
n
=
static_cast
<
int
>
(
seeds
->
size
()
)
;
// # marked nodes
const
int
q
=
static_cast
<
int
>
(
numel
-
seeds
->
size
()
)
;
// # unmarked nodes
// Permutation matrix to get UNMARKED COLUMNS
SparseMatrix
<
double
>
Cu
(
numel
,
q
);
...
...
@@ -112,8 +112,8 @@ void RandomWalksCore::assemble_Lu_b()
void
RandomWalksCore
::
generateUniqueIndices
()
{
const
int
n
=
seeds
->
size
();
// # marked nodes
const
int
q
=
numel
-
seeds
->
size
();
// # unmarked nodes
const
int
n
=
static_cast
<
int
>
(
seeds
->
size
()
)
;
// # marked nodes
const
int
q
=
static_cast
<
int
>
(
numel
-
seeds
->
size
()
)
;
// # unmarked nodes
std
::
vector
<
int
>
uidx_temp
(
numel
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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