Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
irp
HoloTomoToolbox
Commits
1fd83a4b
Commit
1fd83a4b
authored
Aug 13, 2019
by
Jakob Soltau
Browse files
fixed bug of padToSize, switched input arguments
parent
e97f29ee
Pipeline
#105149
passed with stage
in 1 minute and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
functions/imageProcessing/cropPadWindow/padToSize.m
View file @
1fd83a4b
...
...
@@ -76,9 +76,9 @@ end
padsize
=
floor
((
outputSize
-
imageSize
)/
2
);
padsize2
=
outputSize
-
(
imageSize
+
2
*
padsize
);
result
=
padarray
(
im
,
padsize
,
'both'
,
padval
);
result
=
padarray
(
im
,
padsize
,
padval
,
'both'
);
if
any
(
padsize2
>
0
)
result
=
padarray
(
result
,
padsize2
,
'pre'
,
padval
);
result
=
padarray
(
result
,
padsize2
,
padval
,
'pre'
);
end
end
Write
Preview
Markdown
is supported
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