Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
4d038036
Commit
4d038036
authored
Nov 30, 2010
by
Sebastian Eichelbaum
Browse files
[FIX] - fixed round-bug
parent
4c05945a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/modules/histogramEqualization/WMHistogramEqualization.cpp
...modules/histogramEqualization/WMHistogramEqualization.cpp
+1
-1
No files found.
src/modules/histogramEqualization/WMHistogramEqualization.cpp
View file @
4d038036
...
...
@@ -259,7 +259,7 @@ void WMHistogramEqualization::moduleMain()
for
(
size_t
vi
=
0
;
vi
<
valueSet
->
rawSize
();
++
vi
)
{
size_t
idx
=
hist
->
getIndexForValue
(
valueSet
->
getScalarDouble
(
vi
)
);
newData
[
vi
]
=
static_cast
<
unsigned
char
>
(
idx
/
maxI
*
255
);
newData
[
vi
]
=
static_cast
<
unsigned
char
>
(
static_cast
<
double
>
(
idx
)
/
static_cast
<
double
>
(
maxI
)
*
255
.0
);
}
}
++*
progress
;
...
...
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