Class FanPicksFromData

java.lang.Object
tritechgemini.imagedata.ImageFanMaker
tritechgemini.imagedata.FanPicksFromData

public class FanPicksFromData extends ImageFanMaker
Fan maker where a LUT is used to work through each point in the fan image and take data from the SonarRecord to populate that point.
Points outside the fan are set to -1.
Author:
Doug Gillespie
See Also:
  • Constructor Details

    • FanPicksFromData

      public FanPicksFromData()
      Create a fan maker that will use two nearest raw data points(closest in range, beam measurements either side of the fan image point).
    • FanPicksFromData

      public FanPicksFromData(int nNearPoints)
      Create a Fan maker.
      Valid values are
      1. Use a single nearest point from the raw data
      2. Use the nearest points in range, and a beam point either side of the output point
      4. Weighted average of four nearest neighbours.
      Parameters:
      nNearPoints - . The number of raw data points to use for each point in the fan.
  • Method Details

    • createFanData

      public FanImageData createFanData(SonarImageRecordI sonarRecord, int nPixX, int nPixY, byte[] data)
      Description copied from class: ImageFanMaker
      n width. height will be scaled according to the range of the bearing table
      Specified by:
      createFanData in class ImageFanMaker
      Parameters:
      sonarRecord - Gemini data record
      nPixX - number of X pixels
      nPixY - number of Y pixels
      Returns:
      Fan image data
    • clearTables

      public void clearTables()
      Description copied from class: ImageFanMaker
      Most image makers will contain a load of lookup tables to get data in the right place this will clear the tables so that they can be rebuilt on the next call to createFanData
      Specified by:
      clearTables in class ImageFanMaker