Mercurial > hg > octave-image
changeset 204:273df971d0ca
Remove dependency on plot toolbox in test code
author | adb014 |
---|---|
date | Mon, 09 Oct 2006 19:57:18 +0000 |
parents | d5fc9c944cc5 |
children | dc60ac686414 |
files | inst/imrotate.m |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/inst/imrotate.m +++ b/inst/imrotate.m @@ -306,7 +306,14 @@ %! 3.5 3.1 3.5 # bilinear %! 2.7 0.1 2.7 # bicubic %! 2.7 1.6 2.8 ]; # Fourier -%! x = peaks(50); +%! +%! # This is peaks(50) without the dependency on the plot package +%! x = y = linspace(-3,3,50); +%! [X,Y] = meshgrid(x,y); +%! x = 3*(1-X).^2.*exp(-X.^2 - (Y+1).^2) \ +%! - 10*(X/5 - X.^3 - Y.^5).*exp(-X.^2-Y.^2) \ +%! - 1/3*exp(-(X+1).^2 - Y.^2); +%! %! x -= min(min(x)); # Fourier does not handle neg. values well %! for m = 1:(length(methods)) %! y = x;