Image Rotate
Why can't I use this format for rotating a bunch of images by the same angle
Function RotateLotsOfImages(wave1,wave2,...)
Wave wave1,wave2
Variable Angle
prompt Angle, "Angle of rotation: "
doPrompt "Image Rotate"
if (V_Flag)
return -1
endif
ImageRotate/A=Angle/E=0 wave1
Duplicate/O M_RotatedImage wave1
ImageRotate/A=Angle/E=0 wave2
Duplicate/O M_RotatedImage wave2
...
end FunctionI have tried converting the variable to a number with str2num(Angle), but that doesn't work. The help file for ImageRotate doesn't give much help on this one.
Thanks for the help,
Jason.
there is no need to use here, because 'angle' is already a number. Also the operation is redundant, use the /O flag instead:
January 20, 2010 at 07:13 am - Permalink
Thanks very much for the help.
Best Wishes,
Jason.
January 20, 2010 at 08:12 am - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
January 22, 2010 at 10:23 am - Permalink