| AHELP for CIAO 4.5 ChIPS v1 | set_contour_transform |
Context: contours |
Synopsis
Sets transform, then applies it to a contour
Syntax
apply_contour_transform([id], transform)
Description
- id - an optional ChipsId structure containing values to modify the currency state for the command, or a string to specify the id of the contour to operate on.
- transform - the Transform structure containing tranform parameters that should be applied to the contour
The set_contour_transform function applies a transform to a contour. Setting the contour transform also associates the transform to the contour for subsequent transform functions to work on. This command is part of the advanced ChIPS module; refer to "ahelp chips" for information. To load the module:
from pychips.advanced import *
The input transform must be a valid Transform structure ("ahelp transform"). Passing None to instead of a transform will remove from the contour the transform currently associated with the it, causing the contour to be redisplayed without any transformations. At most one transform can be associated with a contour at a given time.
Example
chips> from pychips.all import *
chips> add_contour('image.fits')
chips> image = read_file ('image2.fits')
chips> t = get_transform (image, 'params')
chips> set_contour_transform (t)Create a contour from one image. Load a second image into a crate. Extract the params transform from that image and apply it to the contour of the original image.
Bugs
See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.

![[ChIPS Logo]](../imgs/chips_logo_navbar.gif)