thm.rectify

From DavinciWiki
Revision as of 13:41, 15 February 2006 by Keith (Talk | contribs)

Jump to: navigation, search


64-bit SafeYes

Description

Rotates and slants a geometrically projected THEMIS cube to minimize the black space and prepare the data for thm.deplaid. The image is first rotated to make a designated line of the image parallel with the x axis and then the left edge of the data is pixel shifted over to the y axis. This results in some reversible spatial distortion depending on the projection. This process is reversed with thm.reconstitute.

Located in "thm" module

Arguments and Return Values

Input: geometrically projected THEMIS cubes of at most 10 bands of type byte, short, int or float.

Output: a davinci structure containing the elements angle, leftedge and data

Usage

Syntax:  thm.rectify(obj,ignore,trust,force)

obj    - a geometrically projected THEMIS cube
ignore - the value in non-data pixels of the projected cube. Default is -3.402822655e+38.
trust  - location in the image the angle should be determined.
         0 = top, 1 = bottom, .25 = 25 percent down the image, etc.  Default is 0 (top).
force  - forces rectify() to use an ignore value even if it complains. Default is 0.

TROUBLESHOOTING
  The ignore value will ALWAYS be set to -32768 when rectifying!
  Rectify checks for appropriate ignore value before running.
  You can override ignore value warning by setting force = 1

Examples

b = thm.rectify(obj=a)

b = thm.rectify(a)

b = thm.rectify(obj=a,ignore=0,trust=2,force=1)

Images

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 01-16-2013

Personal tools