Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
22eebb13
Commit
22eebb13
authored
Dec 01, 2011
by
David Gobbi
Committed by
Kitware Robot
Dec 01, 2011
Browse files
Merge topic 'image-histogram'
85ff2106
COMP: Fix warning on MSVC71 compiler.
parents
047a1db2
85ff2106
Changes
1
Hide whitespace changes
Inline
Side-by-side
Imaging/vtkImageHistogram.cxx
View file @
22eebb13
...
...
@@ -484,7 +484,8 @@ void vtkImageHistogramGenerateImage(
// find tallest peak in histogram
vtkIdType
peak
=
0
;
for
(
int
ix
=
0
;
ix
<
nx
;
++
ix
)
int
ix
;
for
(
ix
=
0
;
ix
<
nx
;
++
ix
)
{
vtkIdType
c
=
histogram
[
ix
];
peak
=
(
peak
>=
c
?
peak
:
c
);
...
...
@@ -517,7 +518,7 @@ void vtkImageHistogramGenerateImage(
}
double
x
=
extent
[
0
]
*
a
;
int
ix
=
static_cast
<
int
>
(
x
);
ix
=
static_cast
<
int
>
(
x
);
for
(
int
i
=
extent
[
0
];
i
<=
extent
[
1
];
i
++
)
{
// use max of the original bins to compute new bin height
...
...
Write
Preview
Supports
Markdown
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