VisiOmatic web client

Class

ProfileUI

Extends

new ProfileUI(optionsopt) → {ProfileUI}

Create a VisiOmatic dialog for plotting image profiles and spectra.

Parameters

  • options object <optional>

    Options.

    Properties

    • title string <optional>
      'Profile overlays'

      Title of the dialog window or panel.

    • profile boolean <optional>
      True

      Include Profile plotting dialog?

    • profileColor string <optional>
      '#FF00FF'

      Default profile overlay color

    • spectrum boolean <optional>
      True

      Include spectrum plotting dialog?

    • spectrumColor string <optional>
      'A000FF'

      Default spectrumoverlay color

    • chartZoomOptions string <optional>

      Default options for the chartjs-plugin-zoom Chart plug-in.

Returns

  • ProfileUI

    Instance of a VisiOmatic profile and spectrum plotting user interface.

Source

Methods

privatestatic

_extractAverage(layer, rawprof, channel) → {number}

Extract the average pixel value in a given channel from the multichannel profiles of a given VisiOmatic layer.

Parameters

  • layer VTileLayer

    VisiOmatic layer.

  • rawprof Array.<number>

    Input "raw" (multiplexed) image profiles.

  • channel number

    Image channel.

Returns

  • number

    Average value.

Source

privatestatic

_extractProfile(layer, rawprof, channel) → {Array.<number>}

Extract the image profile in a given channel from the multichannel profiles of a given VisiOmatic layer.

Parameters

  • layer VTileLayer

    VisiOmatic layer.

  • rawprof Array.<number>

    Input "raw" (multiplexed) image profiles.

  • channel number

    Image channel.

Returns

  • Array.<number>

    Extracted image profile.

Source

privatestatic

_getDistanceString() → {string}

Compute distance and set up measurement string.

Returns

  • string

    Measurement string.

Source

privatestatic

_plotProfile(response)

Load and plot image profile data.

Parameters

  • response object

    HTTP response object.

Source

privatestatic

_plotSpectrum(self, httpRequest)

Load and plot spectrum data.

Parameters

  • self object

    Calling control object (this).

  • httpRequest object

    HTTP request.

Source

privatestatic

_updateLine(e)

Update plotted line parameters.

Parameters

  • e event

    Triggering event (e.g., 'drag').

Source