Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
calng
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
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
calibration
calng
Commits
6cba1eb7
Commit
6cba1eb7
authored
4 months ago
by
David Hammer
Browse files
Options
Downloads
Patches
Plain Diff
Fix the subtraction of mean from nominators, simplify with fun_ring
parent
1d4a8162
No related branches found
No related tags found
1 merge request
!139
(Not for merging) online indexing + LPD parallel gain testing
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/calng/kernels/peakfinder9_gpu.cu
+4
-4
4 additions, 4 deletions
src/calng/kernels/peakfinder9_gpu.cu
with
4 additions
and
4 deletions
src/calng/kernels/peakfinder9_gpu.cu
+
4
−
4
View file @
6cba1eb7
...
...
@@ -149,13 +149,13 @@ extern "C" __global__ void pf9(const unsigned short num_frames,
// whole peak should have sufficent SNR
float
peak_weighted_row
;
float
peak_weighted_col
;
float
peak_total_mass
=
pixel_val
-
mean
;
float
peak_total_mass
=
0
;
{
/* TODO: more compact form */
float
peak_weighted_row_nom
=
static_cast
<
float
>
(
row
)
*
pixel_val
;
float
peak_weighted_col_nom
=
static_cast
<
float
>
(
col
)
*
pixel_val
;
float
peak_weighted_row_nom
=
0
;
float
peak_weighted_col_nom
=
0
;
const
float
peak_pixel_threshold
=
mean
+
min_snr_peak_pixels
*
sigma
;
for
(
unsigned
short
layer
=
1
;
layer
<=
window_radius
;
++
layer
)
{
for
(
unsigned
short
layer
=
0
;
layer
<=
window_radius
;
++
layer
)
{
float
total_mass_before
=
peak_total_mass
;
masked_frame
.
fun_ring
(
row
,
col
,
layer
,
[
&
]
(
unsigned
short
i
,
unsigned
short
j
,
float
val
)
{
if
(
val
>
peak_pixel_threshold
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment