Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
graintracking
DCT
Commits
1a3f4a4e
Commit
1a3f4a4e
authored
9 years ago
by
Wolfgang Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
NaN gives errors in gtSegmentDiffractionBlobs (single Threshold)
Signed-off-by:
Wolfgang Ludwig
<
wolfgang.ludwig@esrf.fr
>
parent
859d6613
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
2_difspot/gtReadAndThreshold.m
+1
-1
1 addition, 1 deletion
2_difspot/gtReadAndThreshold.m
with
1 addition
and
1 deletion
2_difspot/gtReadAndThreshold.m
+
1
−
1
View file @
1a3f4a4e
...
...
@@ -76,7 +76,7 @@ function [img, med_value, info] = gtReadAndThreshold(ndx, parameters, thr_single
if
(
isfield
(
seg
,
'background_subtract'
)
&&
(
seg
.
background_subtract
==
true
))
%subtract the median of the background
%taken from gtFullStatCondor - thanks Peter!
nullbb
=
NaN
(
seg
.
bbox
(
4
),
seg
.
bbox
(
3
));
nullbb
=
zeros
(
seg
.
bbox
(
4
),
seg
.
bbox
(
3
));
imn
=
gtPlaceSubImage2
(
nullbb
,
im_full
,
seg
.
bbox
(
1
),
seg
.
bbox
(
2
));
% can use a sub set of pixel to calculate the median, it's faster
...
...
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