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
bb658bcd
Commit
bb658bcd
authored
7 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
Fixed flip function - matlab version problem
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
70314d27
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
zUtil_Imaging/GtPSF.m
+5
-1
5 additions, 1 deletion
zUtil_Imaging/GtPSF.m
zUtil_Imaging/gtESF2LSF.m
+10
-2
10 additions, 2 deletions
zUtil_Imaging/gtESF2LSF.m
with
15 additions
and
3 deletions
zUtil_Imaging/GtPSF.m
+
5
−
1
View file @
bb658bcd
...
...
@@ -102,7 +102,11 @@ classdef GtPSF < handle
psf_d
=
cast
(
psf_d
,
self
.
data_type
);
% Let's find out whether they are symmetric or not
psf_a
=
flip
(
flip
(
psf_d
,
1
),
3
);
if
(
verLessThan
(
'matlab'
,
'8.2.0'
))
psf_a
=
flipdim
(
flipdim
(
psf_d
,
1
),
3
);
%#ok<DFLIPDIM>
else
psf_a
=
flip
(
flip
(
psf_d
,
1
),
3
);
end
is_sym
=
all
(
abs
(
psf_d
(:)
-
psf_a
(:))
<
eps
(
'single'
));
...
...
This diff is collapsed.
Click to expand it.
zUtil_Imaging/gtESF2LSF.m
+
10
−
2
View file @
bb658bcd
...
...
@@ -97,9 +97,17 @@ function lsf_line = gtESF2LSF(img, varargin)
switch
(
conf
.
side
)
case
'both'
case
'dark'
lsf
(
lsf_edge
+
2
:
end
)
=
flip
(
lsf
(
1
:
lsf_edge
));
if
(
verLessThan
(
'matlab'
,
'8.2.0'
))
lsf
(
lsf_edge
+
2
:
end
)
=
fliplr
(
lsf
(
1
:
lsf_edge
));
else
lsf
(
lsf_edge
+
2
:
end
)
=
flip
(
lsf
(
1
:
lsf_edge
));
end
case
'bright'
lsf
(
1
:
lsf_edge
)
=
flip
(
lsf
(
lsf_edge
+
2
:
end
));
if
(
verLessThan
(
'matlab'
,
'8.2.0'
))
lsf
(
1
:
lsf_edge
)
=
fliplr
(
lsf
(
lsf_edge
+
2
:
end
));
else
lsf
(
1
:
lsf_edge
)
=
flip
(
lsf
(
lsf_edge
+
2
:
end
));
end
end
lsf
(
lsf
<
0
)
=
0
;
if
(
~
conf
.
keep_oversampling
)
...
...
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