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 TypeMethodDescriptionvoidenableAutoAdjust(boolean enable) Deprecated.@Nullable JavaImageBufferDeprecated.This feature will probably be removed in upcoming release.static @Nullable JavaImageBuffergetFixedFullRangeScaleImage(Palette palette) Deprecated.This feature will probably be removed in upcoming release.@Nullable JavaImageBuffergetImage()Deprecated.UseImageColorizer.getScaleImage()instead.Gets the maximum range, where colors defined by thePaletteare applied to theThermalImage.
Note: UseImageColorizer.getScaleRangeMax()if auto scale is enabled.Gets the minimum range, where colors defined by thePaletteare applied to theThermalImage.
Note: UseImageColorizer.getScaleRangeMin()if auto scale is enabled.booleanDeprecated.UseImageColorizer.isAutoScale()instead.voidsetRange(ThermalValue min, ThermalValue max) Sets the minimum and maximum scale values.voidsetRangeMax(ThermalValue max) Sets the maximum range, where colors defined by thePaletteare applied to theThermalImage.
Note: EnsureImageColorizer.isAutoScale()is disabled when setting this value.voidsetRangeMin(ThermalValue min) Sets the minimum range, where colors defined by thePaletteare applied to theThermalImage.
Note: EnsureImageColorizer.isAutoScale()is disabled when setting this value.
-
Method Details
-
getRangeMin
Gets the minimum range, where colors defined by thePaletteare 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 thePaletteare 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 thePaletteare applied to theThermalImage.
Note: EnsureImageColorizer.isAutoScale()is disabled when setting this value.- See Also:
-
setRangeMax
Sets the maximum range, where colors defined by thePaletteare 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 thePaletteare 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, theScalewill automatically update to match the image parameters.- Parameters:
enable- passtrueto enable auto adjust, otherwisefalse.
-
isAutoAdjustEnabled
Deprecated.UseImageColorizer.isAutoScale()instead.Gets auto adjust setting.- Returns:
trueif auto adjust is enabled, otherwisefalse.
-
getImage
Deprecated.UseImageColorizer.getScaleImage()instead.Gets a linear scale image as aJavaImageBufferobject. That image in the buffer is a visual representation of thePaletteapplied to theThermalImage. It is used for drawing purposes.- Returns:
- a linear scale image as a
JavaImageBufferobject 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
JavaImageBufferobject 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- aPaletteto be used for rendering full scale image- Returns:
- a full thermal range scale image as a
JavaImageBufferobject or null if image cannot be obtained. - See Also:
-
ImageColorizer.setAutoScale(boolean)instead.