JpegLsPresetCodingParameters
内容
[
隐藏
]Inheritance: java.lang.Object
public class JpegLsPresetCodingParameters
定义在 ISO/IEC 14495-1, C.2.4.1.1 中的 JPEG-LS 预设编码参数。JPEG-LS 定义了一套默认参数,但可以使用自定义参数。使用时,这些参数会写入编码位流,以满足解码过程的需要。
构造函数
| 构造函数 | 描述 |
|---|---|
| JpegLsPresetCodingParameters() |
方法
| 方法 | 描述 |
|---|---|
| getMaximumSampleValue() | 获取或设置扫描中任何图像样本的最大可能值。 |
| setMaximumSampleValue(int value) | 获取或设置扫描中任何图像样本的最大可能值。 |
| getThreshold1() | 获取或设置局部梯度的第一个量化阈值。 |
| setThreshold1(int value) | 获取或设置局部梯度的第一个量化阈值。 |
| getThreshold2() | 获取或设置局部梯度的第二个量化阈值。 |
| setThreshold2(int value) | 获取或设置局部梯度的第二个量化阈值。 |
| getThreshold3() | 获取或设置局部梯度的第三个量化阈值。 |
| setThreshold3(int value) | 获取或设置局部梯度的第三个量化阈值。 |
| getResetValue() | 获取或设置计数器 A、B 和 N 被减半的阈值。 |
| setResetValue(int value) | 获取或设置计数器 A、B 和 N 被减半的阈值。 |
JpegLsPresetCodingParameters()
public JpegLsPresetCodingParameters()
getMaximumSampleValue()
public int getMaximumSampleValue()
获取或设置扫描中任何图像样本的最大可能值。该值必须大于或等于扫描中各组件的实际最大值。
Returns: int
setMaximumSampleValue(int value)
public void setMaximumSampleValue(int value)
获取或设置扫描中任何图像样本的最大可能值。该值必须大于或等于扫描中各组件的实际最大值。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int |
getThreshold1()
public int getThreshold1()
获取或设置局部梯度的第一个量化阈值。
Returns: int
setThreshold1(int value)
public void setThreshold1(int value)
获取或设置局部梯度的第一个量化阈值。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int |
getThreshold2()
public int getThreshold2()
获取或设置局部梯度的第二个量化阈值。
Returns: int
setThreshold2(int value)
public void setThreshold2(int value)
获取或设置局部梯度的第二个量化阈值。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int |
getThreshold3()
public int getThreshold3()
获取或设置局部梯度的第三个量化阈值。
Returns: int
setThreshold3(int value)
public void setThreshold3(int value)
获取或设置局部梯度的第三个量化阈值。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int |
getResetValue()
public int getResetValue()
获取或设置计数器 A、B 和 N 被减半的阈值。
Returns: int
setResetValue(int value)
public void setResetValue(int value)
获取或设置计数器 A、B 和 N 被减半的阈值。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | int |