thm.rectify

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{DavinciWiki_Function|
 
{{DavinciWiki_Function|
Extracts rectangle of data from projected cubes
+
Rotates and slants a geometrically projected THEMIS cubes 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|
 
Located in "thm" module|
Accepts geometrically projected cubes of at most 10 bands
+
Input: geometrically projected THEMIS cubes of at most 10 bands of type byte, short, int or float.
  
Returns a rectangle cube in a davinci structure with an angle, leftedge and data|
+
Output: a davinci structure containing the elements angle, leftedge and data|
  Syntax:  b = thm.rectify(obj,ignore,trust,force)
+
  Syntax:  thm.rectify(obj,ignore,trust,force)
 
   
 
   
  obj    - any projected cube
+
  obj    - a geometrically projected THEMIS cube
  ignore - the value in non-data pixels of projected cube. Default is -3.402822655e+38.
+
  ignore - the value in non-data pixels of the projected cube. Default is -3.402822655e+38.
  trust  - where in the image the angle should be determined.
+
  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).
+
          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.
 
  force  - forces rectify() to use an ignore value even if it complains. Default is 0.
 
   
 
   
 
  TROUBLESHOOTING
 
  TROUBLESHOOTING
The ignore value will ALWAYS be set to -32768 when rectifying!
+
  The ignore value will ALWAYS be set to -32768 when rectifying!
Rectify checks for appropriate ignore value before running.
+
  Rectify checks for appropriate ignore value before running.
You can override ignore value warning by setting force = 1
+
  You can override ignore value warning by setting force = 1
 
|  
 
|  
 
  b = thm.rectify(obj=a)
 
  b = thm.rectify(obj=a)

Revision as of 13:39, 15 February 2006



64-bit SafeYes

Description

Rotates and slants a geometrically projected THEMIS cubes 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