Pix2U:

Path: SpacecraftEstimation/StellarEphem

% Converts a pixel location into a unit vector. 

   Works for any f which is normally the focal length in the same units as
   p. The offset allows you to specify an origin for the pixel map other
   than the center. For example, to transform locations measured from the
   lower left of the pixelmap, input the halfwidth of the frame.

   Since version 3.
------------------------------------------------------------------------
   Form:
   u = Pix2U( p, f, offset )
------------------------------------------------------------------------

   ------
   Inputs
   ------
   p            (2,:)   [x;y] (a column vector)
   f   (1,1) or (2,1)   Scale factor (focal length in units of pixels)
   offset       (1,2)   Pixel offset in [x y]

   -------
   Outputs
   -------
   u            (3,:)   Unit vector

------------------------------------------------------------------------

Children:

Math: Linear/Unit

Back to the SpacecraftEstimation Module page