GoWebScan API
GoWebScanVisionResampler Class Reference

Description

Represents an algorithm for producing uniform-resolution resampled vision output given input terrain and demosaiced color vision tiles.

Algorithm steps:

  1. When processing an input image, each of the output rows that fall within its Y-location limits is considered. Output rows that fall within this region are processed one at a time; if the row has not been previously considered, its pixels are first cleared.
  2. For each pixel in a particular output row, the corresponding terrain Z value is first looked up.
  3. Using the xRes(z) and yRes(z) functions provided by GoWebScanConfigNode, and the known terrain Z value, the image resolutions are calculated. Using the image X-center (GoWebScanConfigNode), image Y-center (image stamp), and Y-offsets (GoWebScanConfigNode), the address of the input pixel that best matches the location of the desired output pixel is calculated.
  4. When input images overlap, the pixels from each image are averaged together in the output buffer. This implies that rows in the output buffer should be retained until the trailing Y-location limit of the next input image is known; rows prior to the limit will no longer be modified and can be emitted.
Inheritance diagram for GoWebScanVisionResampler:
Inheritance graph

Public Member Functions

kStatus GoWebScanVisionResampler_Clear (GoWebScanVisionResampler resampler)
 Clears internal buffers and resets the algorithm. More...
 
kStatus GoWebScanVisionResampler_Construct (GoWebScanVisionResampler *resampler, const GoWebScanVisionResamplerParams *args, const k32s *yOffsets, kAlloc allocator)
 Constructs a GoWebScanVisionResampler object. More...
 
kStatus GoWebScanVisionResampler_Process (GoWebScanVisionResampler resampler, const GoWebScanMsgStamp *stamp, kImage vision, kArray2 *terrain, kArray1 *terrainInputs, kSSize terrainCount, k64s terrainTile)
 Runs the vision resampler algorithm on a vision tile and set of terrain tiles that are matched (in Y). More...
 
kStatus GoWebScanVisionResampler_SetDataHandler (GoWebScanVisionResampler resampler, GoWebScanVisionResamplerDataFx data, kPointer context)
 Sets the handler for accepting the processed resampled rows from the algorithm. More...
 

The documentation for this class was generated from the following file: