Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: regionmanager.concatenation - Function Up: regionmanager - Tool Previous: regionmanager.box - Function


regionmanager.complement - Function



Package general
Module images
Tool regionmanager


Create the complement of a world region


Synopsis
complement(region, comment)


Arguments

region in The world region
    Allowed: Region tool
comment in A comment stored with the region
    Allowed: String


Returns
Region tool or fail



Description

This function (short-hand name comp) creates the complement of a world region.



Example
- im := image('hcn')
- cs := im.coordsys()
- im.shape()
[155 178]
-
- blc := "17:42:29.303 -28.59.18.600"
- trc := "17:42:28.303 -28.59.10.600"
- r2 := drm.wbox(blc,trc,[1,2],cs)
- r3 := drm.complement(r2);
-
- im.stats(region=r2)                          # Some output discarded 
Selected bounding box [90, 90] to [103, 98]         
No pts   = 126
-
- im.stats(region=r3)
Selected bounding box [1, 1] to [155, 178]     # Some output discarded 
No pts   = 27464

As expected, the number of pixels in the complement is (155*178) - 126 = 27464





next up previous contents index
Next: regionmanager.concatenation - Function Up: regionmanager - Tool Previous: regionmanager.box - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01