changeset 138:4d4f17064410

Add simple test for 'nearest' near 90 degrees. More tests needed.
author pkienzle
date Fri, 18 Feb 2005 04:42:19 +0000
parents abe4962005a4
children 256a463543f6
files imrotate.m
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/imrotate.m
+++ b/imrotate.m
@@ -297,3 +297,8 @@
     error(sprintf("Interpolation method %s not implemented", method));
   endif
 endfunction
+
+%!test
+%! X = rand(19);
+%! Z = imrotate(imrotate(X, 89.9, "nearest"), -89.9, "nearest");
+%! assert(norm(X-Z),0);