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