com.supermap.image.processing
类 ColorBalanceParameter
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.image.processing.ColorBalanceParameter
-
public class ColorBalanceParameter extends com.supermap.data.InternalHandle
匀色参数设置类
-
-
构造器概要
构造器 构造器和说明 ColorBalanceParameter()
构造函数。
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 限定符和类型 方法和说明 void
dispose()
释放该对象所占用的资源。BlockSizeOption
getBlockSize()
返回分块大小。double
getBrightness()
已过时。ColorBalanceMethod
getColorBalanceMethod()
返回匀色方法。double
getConstant()
已过时。static long
getHandle(com.supermap.data.InternalHandle obj)
double
getImageBrightness()
返回亮度。double
getImageConstant()
返回对比度。DatasetVector
getMaskDataset()
返回掩膜数据集。int
getMaxThreshold()
已过时。int
getMaxValue()
返回匀色结果最大值,匀色结果值域最大值。int
getMinThreshold()
已过时。int
getMinValue()
返回匀色结果最小值,匀色结果值域最小值。int
getParallelNumber()
返回并行数量。ResamplingMethod
getPyramidResamplingMethod()
返回金字塔重采样方法。DatasetImage
getReferenceDataset()
返回参考影像。int[]
getRgbBandsMap()
返回RGB颜色值对应的波段索引。double
getSaturation()
返回饱和度。boolean
isGeographyTemplate()
已过时。boolean
isSetThreshold()
已过时。boolean
isTiled()
已过时。ColorBalanceParameter
setBlockSize(BlockSizeOption blockSize)
设置分块大小,默认分块为1024。ColorBalanceParameter
setBrightness(double brightness)
已过时。ColorBalanceParameter
setColorBalanceMethod(ColorBalanceMethod method)
设置匀色方法,默认为匀光匀色法,颜色映射法仅支持匀色输出。ColorBalanceParameter
setConstant(double constant)
已过时。ColorBalanceParameter
setGeographyTemplate(boolean isGeographyTemplate)
已过时。static void
setHandle(com.supermap.data.InternalHandle obj, long handle)
ColorBalanceParameter
setImageBrightness(double brightness)
设置亮度,亮度范围为[-100,100],默认值为0。ColorBalanceParameter
setImageConstant(double constant)
设置对比度,对比度范围为[-100,100],默认值为0。ColorBalanceParameter
setMaskDataset(DatasetVector maskDataset)
设置掩膜数据集。ColorBalanceParameter
setMaxThreshold(int maxThreshold)
已过时。ColorBalanceParameter
setMaxValue(int maxValue)
设置匀色结果最大值,匀色结果值域最大值,默认值为255。ColorBalanceParameter
setMinThreshold(int minThreshold)
已过时。ColorBalanceParameter
setMinValue(int minValue)
设置匀色结果最小值,匀色结果值域最小值,默认值为1。ColorBalanceParameter
setParallelNumber(int parallelNumber)
设置并行数量。ColorBalanceParameter
setPyramidResamplingMethod(ResamplingMethod pyramidResampleMethod)
设置匀色结果金字塔重采样方法,NONE表示不创建金字塔。ColorBalanceParameter
setReferenceDataset(DatasetImage referenceDataset)
设置参考影像。ColorBalanceParameter
setRgbBandsMap(int[] rgbBandIndex)
设置RGB颜色值对应的波段索引,默认为{0,1,2}。ColorBalanceParameter
setSaturation(double saturation)
设置饱和度,饱和度范围为[-100,100],默认为0,该参数仅对真彩色数据有效。ColorBalanceParameter
setSetThreshold(boolean isSetThreshold)
已过时。ColorBalanceParameter
setTiled(boolean isTiled)
已过时。
-
-
-
方法详细资料
-
dispose
public void dispose()
释放该对象所占用的资源。
-
getReferenceDataset
public DatasetImage getReferenceDataset()
返回参考影像。- 返回:
- 参考影像。
-
setReferenceDataset
public ColorBalanceParameter setReferenceDataset(DatasetImage referenceDataset)
设置参考影像。- 参数:
referenceDataset
- 参考影像。- 返回:
- 匀色参数对象。
-
getImageBrightness
public double getImageBrightness()
返回亮度。- 返回:
- 亮度。
-
setImageBrightness
public ColorBalanceParameter setImageBrightness(double brightness)
设置亮度,亮度范围为[-100,100],默认值为0。- 参数:
brightness
- 亮度。- 返回:
- 匀色参数对象。
-
getImageConstant
public double getImageConstant()
返回对比度。- 返回:
- 对比度。
-
setImageConstant
public ColorBalanceParameter setImageConstant(double constant)
设置对比度,对比度范围为[-100,100],默认值为0。- 参数:
constant
- 对比度。- 返回:
- 匀色参数对象。
-
getParallelNumber
public int getParallelNumber()
返回并行数量。- 返回:
- 并行数量。
-
setParallelNumber
public ColorBalanceParameter setParallelNumber(int parallelNumber)
设置并行数量。- 参数:
parallelNumber
- 并行数量。- 返回:
- 匀色参数对象。
-
isSetThreshold
@Deprecated public boolean isSetThreshold()
已过时。返回是否偏色抑制。- 返回:
- 是否偏色抑制。
-
setSetThreshold
@Deprecated public ColorBalanceParameter setSetThreshold(boolean isSetThreshold)
已过时。设置是否偏色抑制。- 参数:
isSetThreshold
- 是否偏色抑制。- 返回:
- 匀色参数对象。
-
getMinThreshold
@Deprecated public int getMinThreshold()
已过时。返回偏色最小值。- 返回:
- 偏色最小值。
-
setMinThreshold
@Deprecated public ColorBalanceParameter setMinThreshold(int minThreshold)
已过时。设置偏色最小值。- 参数:
minThreshold
- 偏色最小值。- 返回:
- 匀色参数对象。
-
getMaxThreshold
@Deprecated public int getMaxThreshold()
已过时。返回偏色最大值。- 返回:
- 偏色最大值。
-
setMaxThreshold
@Deprecated public ColorBalanceParameter setMaxThreshold(int maxThreshold)
已过时。设置偏色最大值。- 参数:
maxThreshold
- 偏色最大值。- 返回:
- 匀色参数对象。
-
setRgbBandsMap
public ColorBalanceParameter setRgbBandsMap(int[] rgbBandIndex)
设置RGB颜色值对应的波段索引,默认为{0,1,2}。- 参数:
rgbBandIndex
- RGB索引值。- 返回:
- 构建镶嵌线参数对象。
-
getRgbBandsMap
public int[] getRgbBandsMap()
返回RGB颜色值对应的波段索引。- 返回:
- RGB索引值。
-
getColorBalanceMethod
public ColorBalanceMethod getColorBalanceMethod()
返回匀色方法。- 返回:
- 匀色方法。
-
setColorBalanceMethod
public ColorBalanceParameter setColorBalanceMethod(ColorBalanceMethod method)
设置匀色方法,默认为匀光匀色法,颜色映射法仅支持匀色输出。- 参数:
method
- 匀色方法。- 返回:
- 匀色参数对象。
-
isGeographyTemplate
@Deprecated public boolean isGeographyTemplate()
已过时。返回是否是地理模板。- 返回:
- 是否是地理模板。
-
setGeographyTemplate
@Deprecated public ColorBalanceParameter setGeographyTemplate(boolean isGeographyTemplate)
已过时。设置是否是地理模板。- 参数:
isGeographyTemplate
- 是否是地理模板。- 返回:
- 匀色参数对象。
-
setTiled
@Deprecated public ColorBalanceParameter setTiled(boolean isTiled)
已过时。设置是否分块匀色。- 参数:
isTiled
- 是否分块匀色。- 返回:
- 是否分块匀色。
-
isTiled
@Deprecated public boolean isTiled()
已过时。返回是否分块匀色。- 返回:
- 是否分块匀色。
-
getBlockSize
public BlockSizeOption getBlockSize()
返回分块大小。- 返回:
- 分块大小。
-
setBlockSize
public ColorBalanceParameter setBlockSize(BlockSizeOption blockSize)
设置分块大小,默认分块为1024。- 参数:
blockSize
- 分块大小。- 返回:
- 分块大小。
-
getMaskDataset
public DatasetVector getMaskDataset()
返回掩膜数据集。- 返回:
- 掩膜数据集。
-
setMaskDataset
public ColorBalanceParameter setMaskDataset(DatasetVector maskDataset)
设置掩膜数据集。- 参数:
maskDataset
- 掩膜数据集。- 返回:
- 掩膜数据集。
-
getBrightness
@Deprecated public double getBrightness()
已过时。返回Wallis匀色亮度系数。- 返回:
- Wallis匀色亮度系数。
-
setBrightness
@Deprecated public ColorBalanceParameter setBrightness(double brightness)
已过时。设置Wallis匀色亮度系数,建议范围为[-1,1]。- 参数:
brightness
- Wallis匀色亮度系数。- 返回:
- 匀色参数对象。
-
getConstant
@Deprecated public double getConstant()
已过时。返回Wallis匀色方差扩展常数。- 返回:
- Wallis匀色方差扩展常数。
-
setConstant
@Deprecated public ColorBalanceParameter setConstant(double constant)
已过时。设置Wallis匀色方差扩展常数,建议范围为[-1,1]。- 参数:
constant
- Wallis匀色方差扩展常数。- 返回:
- 匀色参数对象。
-
getSaturation
public double getSaturation()
返回饱和度。- 返回:
- 饱和度。
-
setSaturation
public ColorBalanceParameter setSaturation(double saturation)
设置饱和度,饱和度范围为[-100,100],默认为0,该参数仅对真彩色数据有效。- 参数:
saturation
- 饱和度。- 返回:
- 匀色参数对象。
-
getMinValue
public int getMinValue()
返回匀色结果最小值,匀色结果值域最小值。- 返回:
- 匀色结果最小值。
-
setMinValue
public ColorBalanceParameter setMinValue(int minValue)
设置匀色结果最小值,匀色结果值域最小值,默认值为1。- 参数:
minValue
- 匀色结果最小值。- 返回:
- 匀色参数对象。
-
getMaxValue
public int getMaxValue()
返回匀色结果最大值,匀色结果值域最大值。- 返回:
- 匀色结果最大值。
-
setMaxValue
public ColorBalanceParameter setMaxValue(int maxValue)
设置匀色结果最大值,匀色结果值域最大值,默认值为255。- 参数:
maxValue
- 匀色结果最大值。- 返回:
- 匀色参数对象。
-
getPyramidResamplingMethod
public ResamplingMethod getPyramidResamplingMethod()
返回金字塔重采样方法。- 返回:
- 是否创建金字塔。
-
setPyramidResamplingMethod
public ColorBalanceParameter setPyramidResamplingMethod(ResamplingMethod pyramidResampleMethod)
设置匀色结果金字塔重采样方法,NONE表示不创建金字塔。- 参数:
pyramidResampleMethod
- 是否创建金字塔。- 返回:
- 匀色参数对象。
-
getHandle
public static long getHandle(com.supermap.data.InternalHandle obj)
-
setHandle
public static void setHandle(com.supermap.data.InternalHandle obj, long handle)
-
-
Copyright © 2021–2025 SuperMap. All rights reserved.