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
093b7260
Commit
093b7260
authored
11 years ago
by
Andrew King
Browse files
Options
Downloads
Patches
Plain Diff
Allow non 2048x2048 maps to be written
Signed-off-by:
Andrew King
<
andrew.king@esrf.fr
>
parent
2db284b0
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
zUtil_Distortion/distortion_write.m
+6
-5
6 additions, 5 deletions
zUtil_Distortion/distortion_write.m
with
6 additions
and
5 deletions
zUtil_Distortion/distortion_write.m
+
6
−
5
View file @
093b7260
...
...
@@ -13,16 +13,17 @@ function distortion_write(fname,mapx,mapy)
% same pixel in the original image (thus the displacement field defined on
% the original - and NOT on the undistorted - domain).
%
% Andy 3/2/2014 - allow non 2048x2048 maps to be written, as we can use
% these
if
size
(
mapx
)
~=
[
2048
2048
]
disp
(
'
ERROR
! MAPhor size
has to
be 2048*2048.'
)
return
disp
(
'
Warning
! MAPhor size
should
be 2048*2048.'
)
disp
(
'continuing...'
)
end
if
size
(
mapy
)
~=
[
2048
2048
]
disp
(
'
ERROR
! MAPver size
has to
be 2048*2048.'
)
return
disp
(
'
Warning
! MAPver size
should
be 2048*2048.'
)
disp
(
'continuing...'
)
end
fid
=
fopen
(
fname
,
'wb'
);
...
...
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