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>
TrueInclude Profile plotting dialog?
-
profileColor
string<optional>
'#FF00FF'Default profile overlay color
-
spectrum
boolean<optional>
TrueInclude spectrum plotting dialog?
-
spectrumColor
string<optional>
'A000FF'Default spectrumoverlay color
-
chartZoomOptions
string<optional>
Default options for the chartjs-plugin-zoom Chart plug-in.
-
title
See
- https://www.chartjs.org/chartjs-plugin-zoom/latest/guide/options.html
UIfor additional control options.
Returns
-
ProfileUIInstance of a VisiOmatic profile and spectrum plotting user interface.
Source
Methods
_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
VTileLayerVisiOmatic layer.
-
rawprof
Array.<number>Input "raw" (multiplexed) image profiles.
-
channel
numberImage channel.
Returns
-
numberAverage value.
Source
_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
VTileLayerVisiOmatic layer.
-
rawprof
Array.<number>Input "raw" (multiplexed) image profiles.
-
channel
numberImage channel.
Returns
-
Array.<number>Extracted image profile.
Source
_getDistanceString() → {string}
Compute distance and set up measurement string.
Returns
-
stringMeasurement string.
Source
_initDialog()
Initialize the profile/spectrum plotting dialog.
Source
_plotProfile(response)
Load and plot image profile data.
Parameters
-
response
objectHTTP response object.
Source
_plotSpectrum(self, httpRequest)
Load and plot spectrum data.
Parameters
-
self
objectCalling control object (
this). -
httpRequest
objectHTTP request.
Source
_profileEnd()
End interactive profile line definition and do the profile query.
Source
_updateLine(e)
Update plotted line parameters.
Parameters
-
e
eventTriggering event (e.g.,
'drag').