Sections of images can be easily displayed by using subarrays.
Erase the current display, create a new array that contains Manhattan and display it by entering:
ERASE
E=MYIMAGE[100:300, 150:250]
Then enter:
TV, E
Figure 6-16: Displaying a Section of an Image
Figure 6-16: Displaying a Section of an Image
Enter WDELETE at the Command Line to dismiss the graphics window.
WDELETE
Rotating an Image
Simple rotation in multiples of 90 degrees can be accomplished with the ROTATE function.
Rotate the image by 90 degrees, as shown below, by entering:
R=ROTATE(E,1)
Now enter to display:
TVSCL, R
Figure 6-17: The Image Rotated by 90 Degrees
Figure 6-17: The Image Rotated by 90 Degrees
The second parameter of ROTATE is an integer from 1 to 8 that specifies which one of the eight possible combinations of rotation and axis reversal to use.
Enter WDELETE at the Command Line to dismiss the graphics window for the next graphic.