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
UI
for additional control options.
Returns
-
ProfileUI
Instance 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
VTileLayer
VisiOmatic layer.
-
rawprof
Array.<number>
Input "raw" (multiplexed) image profiles.
-
channel
number
Image channel.
Returns
-
number
Average 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
VTileLayer
VisiOmatic layer.
-
rawprof
Array.<number>
Input "raw" (multiplexed) image profiles.
-
channel
number
Image channel.
Returns
-
Array.<number>
Extracted image profile.
Source
_getDistanceString() → {string}
Compute distance and set up measurement string.
Returns
-
string
Measurement string.
Source
_initDialog()
Initialize the profile/spectrum plotting dialog.
Source
_plotProfile(response)
Load and plot image profile data.
Parameters
-
response
object
HTTP response object.
Source
_plotSpectrum(self, httpRequest)
Load and plot spectrum data.
Parameters
-
self
object
Calling control object (
this
). -
httpRequest
object
HTTP request.
Source
_profileEnd()
End interactive profile line definition and do the profile query.
Source
_updateLine(e)
Update plotted line parameters.
Parameters
-
e
event
Triggering event (e.g.,
'drag'
).