Package com.flir.thermalsdk.image
Class Scale
java.lang.Object
com.flir.thermalsdk.image.Scale
Defines an image's linear scale object and basic scale's parameters. The scale defines the way
the
Palette
is applied to the ThermalImage
. Scale is an interval of the
temperature, where colors from a selected Palette
is applied. The available temperature's
range is defined by the ThermalImage
.
Scale
cannot be created directly, it should always be obtained from ThermalImage
.
To do so, the ThermalImage.getScale()
method should be called.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
enableAutoAdjust
(boolean enable) Deprecated.@Nullable JavaImageBuffer
Deprecated.This feature will probably be removed in upcoming release.static @Nullable JavaImageBuffer
getFixedFullRangeScaleImage
(Palette palette) Deprecated.This feature will probably be removed in upcoming release.@Nullable JavaImageBuffer
getImage()
Deprecated.UseImageColorizer.getScaleImage()
instead.Gets the maximum range, where colors defined by thePalette
are applied to theThermalImage
.
Note: UseImageColorizer.getScaleRangeMax()
if auto scale is enabled.Gets the minimum range, where colors defined by thePalette
are applied to theThermalImage
.
Note: UseImageColorizer.getScaleRangeMin()
if auto scale is enabled.boolean
Deprecated.UseImageColorizer.isAutoScale()
instead.void
setRange
(ThermalValue min, ThermalValue max) Sets the minimum and maximum scale values.void
setRangeMax
(ThermalValue max) Sets the maximum range, where colors defined by thePalette
are applied to theThermalImage
.
Note: EnsureImageColorizer.isAutoScale()
is disabled when setting this value.void
setRangeMin
(ThermalValue min) Sets the minimum range, where colors defined by thePalette
are applied to theThermalImage
.
Note: EnsureImageColorizer.isAutoScale()
is disabled when setting this value.
-
Method Details
-
getRangeMin
Gets the minimum range, where colors defined by thePalette
are applied to theThermalImage
.
Note: UseImageColorizer.getScaleRangeMin()
if auto scale is enabled.- Returns:
- the minimum scale value.
-
getRangeMax
Gets the maximum range, where colors defined by thePalette
are applied to theThermalImage
.
Note: UseImageColorizer.getScaleRangeMax()
if auto scale is enabled.- Returns:
- the maximum scale value.
-
setRangeMin
Sets the minimum range, where colors defined by thePalette
are applied to theThermalImage
.
Note: EnsureImageColorizer.isAutoScale()
is disabled when setting this value.- See Also:
-
setRangeMax
Sets the maximum range, where colors defined by thePalette
are applied to theThermalImage
.
Note: EnsureImageColorizer.isAutoScale()
is disabled when setting this value. -
setRange
Sets the minimum and maximum scale values. It will define, how colors defined by thePalette
are applied to theThermalImage
.
Note: EnsureImageColorizer.isAutoScale()
is disabled when setting these values.- Parameters:
min
- minimum scale value to be used.max
- maximum scale value to be used.
-
enableAutoAdjust
Deprecated.UseImageColorizer.setAutoScale(boolean)
instead.Sets auto adjust enabled or disabled. When auto adjust is enabled, theScale
will automatically update to match the image parameters.- Parameters:
enable
- passtrue
to enable auto adjust, otherwisefalse
.
-
isAutoAdjustEnabled
Deprecated.UseImageColorizer.isAutoScale()
instead.Gets auto adjust setting.- Returns:
true
if auto adjust is enabled, otherwisefalse
.
-
getImage
Deprecated.UseImageColorizer.getScaleImage()
instead.Gets a linear scale image as aJavaImageBuffer
object. That image in the buffer is a visual representation of thePalette
applied to theThermalImage
. It is used for drawing purposes.- Returns:
- a linear scale image as a
JavaImageBuffer
object or null if image cannot be obtained. - See Also:
-
getFixedFullRangeScaleImage
Deprecated.This feature will probably be removed in upcoming release.Gets an image representing the full thermal range scale using acurrent palette
.- Returns:
- a full thermal range scale image as a
JavaImageBuffer
object or null if image cannot be obtained. - See Also:
-
getFixedFullRangeScaleImage
@Deprecated @Nullable public static @Nullable JavaImageBuffer getFixedFullRangeScaleImage(Palette palette) Deprecated.This feature will probably be removed in upcoming release.Gets an image representing the full thermal range scale using aspecified palette
.- Parameters:
palette
- aPalette
to be used for rendering full scale image- Returns:
- a full thermal range scale image as a
JavaImageBuffer
object or null if image cannot be obtained. - See Also:
-
ImageColorizer.setAutoScale(boolean)
instead.