Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tomotools
Nabu
Commits
5a16ae03
Commit
5a16ae03
authored
Apr 21, 2022
by
Pierre Paleo
Browse files
Add nan value handling in flatfield.cu
parent
1202eb28
Changes
1
Hide whitespace changes
Inline
Side-by-side
nabu/cuda/src/flatfield.cu
View file @
5a16ae03
...
...
@@ -65,5 +65,11 @@ __global__ void flatfield_normalization(
#error "N_DARKS > 1 is not supported yet"
#endif
radios
[
pos
]
=
(
radios
[
pos
]
-
dark_val
)
/
(
flat_val
-
dark_val
);
float
val
=
(
radios
[
pos
]
-
dark_val
)
/
(
flat_val
-
dark_val
);;
#ifdef NAN_VALUE
if
(
flat_val
==
dark_val
)
val
=
NAN_VALUE
;
#endif
radios
[
pos
]
=
val
}
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