| listarea | stsdas.toolbox.imgtools | listarea |
listarea -- Print a section of an image.
listarea input
This task will print image values with pixels labelled by their image coordinates. If an image section is given, the pixel coordinates refer to the original image. If the image has keywords SAMPBEG and LINEBEG then these integers are also added to the printed coordinates.
Note that the images.listpix task produces a list of values, whereas this task prints a 2-dimensional section of an image which may, for example, be examined to look for image features.
If the output is redirected, the page width is obtained from the pagewidth parameter; otherwise, the page width is set to the value of the environment variable ttyncols.
1. Print an area of the image focim. Note that the range of line numbers has been specified as 330:325 rather than as 325:330.
im> listarea focim.hhh[415:425,330:325]
Here is some sample output:
Listing of image:
focim.hhh[415:425,330:325]
Sample 415 416 417 418 419 420 421 422 423 424 425
Line
330 0 3 94 95 95 95 95 95 95 95 95
329 0 0 80 95 95 95 95 95 95 95 95
328 0 0 65 95 95 95 95 88 71 55 39
327 0 0 40 59 43 27 11 -5 -21 -37 -53
326 0 0 -6 -33 -49 -66 -82 0 0 0 0
325 0 0 0 0 0 0 0 0 0 0 0