Dear Gitlab Users, for our upcoming upgrade to Gitlab v14, Gitlab will be unavailable on Thursday, 05.08.2021 from 5:00 pm to approximately 7:00 pm. Note that with v14, certain breaking changes will be introduced (https://about.gitlab.com/blog/2021/06/04/gitlab-moving-to-14-breaking-changes/).

Commit 177797b5 authored by Simon Maretzke's avatar Simon Maretzke
Browse files

Now return settings if called with no arguments, like the other toolbox functions

parent c2c70e01
......@@ -67,6 +67,10 @@ function imTransformed = rotateImage(im, rotAngleDegree, settings)
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
if nargin == 0
imTransformed = rmfield(shiftRotateMagnifyImage, 'invertTransform');
return
end
if nargin < 3
settings = struct;
end
......
......@@ -66,6 +66,10 @@ function imTransformed = shiftImage(im, shifts, settings)
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
if nargin == 0
imTransformed = rmfield(shiftRotateMagnifyImage, 'invertTransform');
return
end
if nargin < 3
settings = struct;
end
......
......@@ -87,6 +87,10 @@ function imTransformed = shiftRotateImage(im, shifts, rotAngleDegree, settings)
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
if nargin == 0
imTransformed = shiftRotateMagnifyImage;
return
end
if nargin < 4
settings = struct;
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment