Loading ...
Sorry, an error occurred while loading the content.

Re: [PanoToolsNG] Distortion equation for PTGUI

Expand Messages
  • Ken Warner
    ... The only practical computation for computing a destination pixel from a source area is interpolation. The usual interpolations are: nearest neighbor;
    Message 1 of 8 , Sep 7 9:42 PM
    • 0 Attachment
      Terry Thrift wrote:
      > Alan:
      >
      > It is rarely just a single pixel from the source that is taken for
      > each destination pixel.
      > You could try thinking of pixels as square areas of a single color.
      >
      The only practical computation for computing a destination pixel from a
      source area is interpolation.

      The usual interpolations are: nearest neighbor; bilinear; bicubic;
      Lanczos and Sinc functions.

      Nearest neighbor is a gross approximation taking the source pixel
      nearest the sub pixel location of the desired
      source pixel. The others "invent" a whole new pixel from a neighborhood
      around the desired sub pixel location
      of the desired source pixel.

      For practical reasons, the neighborhood is usually a symmetric square
      around the desired sub pixel location with
      weights assigned to the actual source pixel depending on how far away
      they are.

      wikipedia has a bunch of good articles on interpolation.
    Your message has been successfully submitted and would be delivered to recipients shortly.