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()构造函数。
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 限定符和类型 方法和说明 voiddispose()释放该对象所占用的资源。BlockSizeOptiongetBlockSize()返回分块大小。doublegetBrightness()已过时。ColorBalanceMethodgetColorBalanceMethod()返回匀色方法。doublegetConstant()已过时。static longgetHandle(com.supermap.data.InternalHandle obj)doublegetImageBrightness()返回亮度。doublegetImageConstant()返回对比度。DatasetVectorgetMaskDataset()返回掩膜数据集。intgetMaxThreshold()已过时。intgetMaxValue()返回匀色结果最大值,匀色结果值域最大值。intgetMinThreshold()已过时。intgetMinValue()返回匀色结果最小值,匀色结果值域最小值。intgetParallelNumber()返回并行数量。ResamplingMethodgetPyramidResamplingMethod()返回金字塔重采样方法。DatasetImagegetReferenceDataset()返回参考影像。int[]getRgbBandsMap()返回RGB颜色值对应的波段索引。doublegetSaturation()返回饱和度。booleanisGeographyTemplate()已过时。booleanisSetThreshold()已过时。booleanisTiled()已过时。ColorBalanceParametersetBlockSize(BlockSizeOption blockSize)设置分块大小,默认分块为1024。ColorBalanceParametersetBrightness(double brightness)已过时。ColorBalanceParametersetColorBalanceMethod(ColorBalanceMethod method)设置匀色方法,默认为匀光匀色法,颜色映射法仅支持匀色输出。ColorBalanceParametersetConstant(double constant)已过时。ColorBalanceParametersetGeographyTemplate(boolean isGeographyTemplate)已过时。static voidsetHandle(com.supermap.data.InternalHandle obj, long handle)ColorBalanceParametersetImageBrightness(double brightness)设置亮度,亮度范围为[-100,100],默认值为0。ColorBalanceParametersetImageConstant(double constant)设置对比度,对比度范围为[-100,100],默认值为0。ColorBalanceParametersetMaskDataset(DatasetVector maskDataset)设置掩膜数据集。ColorBalanceParametersetMaxThreshold(int maxThreshold)已过时。ColorBalanceParametersetMaxValue(int maxValue)设置匀色结果最大值,匀色结果值域最大值,默认值为255。ColorBalanceParametersetMinThreshold(int minThreshold)已过时。ColorBalanceParametersetMinValue(int minValue)设置匀色结果最小值,匀色结果值域最小值,默认值为1。ColorBalanceParametersetParallelNumber(int parallelNumber)设置并行数量。ColorBalanceParametersetPyramidResamplingMethod(ResamplingMethod pyramidResampleMethod)设置匀色结果金字塔重采样方法,NONE表示不创建金字塔。ColorBalanceParametersetReferenceDataset(DatasetImage referenceDataset)设置参考影像。ColorBalanceParametersetRgbBandsMap(int[] rgbBandIndex)设置RGB颜色值对应的波段索引,默认为{0,1,2}。ColorBalanceParametersetSaturation(double saturation)设置饱和度,饱和度范围为[-100,100],默认为0,该参数仅对真彩色数据有效。ColorBalanceParametersetSetThreshold(boolean isSetThreshold)已过时。ColorBalanceParametersetTiled(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.