Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
let-it-snow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Remote Modules
let-it-snow
Merge requests
!49
Resolve "Fix z_center cast in histo_utils.cxx"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Fix z_center cast in histo_utils.cxx"
64-fix-z_center-cast-in-histo_utils-cxx
into
release-1.6
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Aurore Dupuis
requested to merge
64-fix-z_center-cast-in-histo_utils-cxx
into
release-1.6
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#64 (closed)
Edited
4 years ago
by
Aurore Dupuis
0
0
Merge request reports
Viewing commit
607c6031
Show latest version
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
607c6031
Fix z_center cast
· 607c6031
Aurore Dupuis
authored
4 years ago
src/histo_utils.cxx
+
2
−
1
Options
@@ -120,7 +120,8 @@ void print_histogram (const itk::Statistics::ImageToHistogramFilter<itk::VectorI
idx4
[
1
]
=
1
;
idx4
[
2
]
=
1
;
const
HistogramType
::
AbsoluteFrequencyType
z_center
=
histogram
.
GetMeasurementVector
(
idx1
)[
0
];
const
HistogramType
::
MeasurementVectorType
measurement
=
histogram
.
GetMeasurementVector
(
idx1
);
const
VectorImageType
::
PixelType
::
ValueType
z_center
=
measurement
[
0
];
const
int
Nz
=
histogram
.
GetFrequency
(
idx1
)
+
histogram
.
GetFrequency
(
idx2
)
+
histogram
.
GetFrequency
(
idx3
)
+
histogram
.
GetFrequency
(
idx4
);
const
int
fcloud_z
=
histogram
.
GetFrequency
(
idx3
)
+
histogram
.
GetFrequency
(
idx4
);
const
int
fsnow_z
=
histogram
.
GetFrequency
(
idx2
)
+
histogram
.
GetFrequency
(
idx4
);
Loading