Main Content

Vision.chromaresampler

图像的下样本或下样品的色彩成分

描述

对于图像的下样本或升级色素组件:

  1. 创建Vision.chromaresampler对象并设置其属性。

  2. 用参数调用对象,就好像它是一个函数一样。

要了解有关系统对象如何工作的更多信息,请参阅什么是系统对象?

创建

描述

例子

重采样器= Vision.chromaresamplerreturns a chroma resampling object,Cresampler,dundsplass或Upsamples的YCBCR信号的色度成分,以减少带宽和存储要求。

伽马科= vision.chromaresampler(名称,价值使用一个或多个名称值对设置属性。将每个属性名称包装在报价中。例如,resampler = vision.chromaresampler('InterpolationFilter','Linear')

特性

展开全部

除非另有说明,否则属性是不可否认,,,,which means you cannot change their values after calling the object. Objects lock when you call them, and the发布function unlocks them.

如果财产是可调,您可以随时更改其价值。

有关更改属性值的更多信息,请参见使用系统对象在MATLAB中的系统设计

重新采样格式,指定为以下一种:

'4:4:4至4:2:2'
'4:4:4至4:2:0(mpeg1)'
'4:4:4至4:2:0(mpeg2)'
'4:4:4至4:1:1'
'4:2:2至4:2:0(MPEG1)'
'4:2:2至4:2:0(MPEG2)'


To upsample the chrominance components of images, set this property to one of the following:

'4:2:2至4:4:4'
'4:2:0 (MPEG1) to 4:4:4'
'4:2:0(mpeg2)至4:4:4'
'4:1:1 to 4:4:4'
'4:2:0(mpeg1)至4:2:2'
'4:2:0 (MPEG2) to 4:2:2'


用于近似丢失值的方法,指定为像素复制or线性。默认值为线性。当您将此属性设置为线性,该对象使用线性插值来计算缺失值。当您将此属性设置为像素复制,该对象复制相邻像素的色度值以创建UPS采样图像。此属性应用于示例色度值时。

低通滤波器用于防止混叠,指定asAuto,,,,Property, 或者None。当您将此属性设置为Auto,,,,the object uses a built-in lowpass filter. When you set this property toProperty,,,,the coefficients of the filters are specified by the水平缩效应andVerticalFilterCoefficientsproperties. When you set this property toNone,,,,the object does not filter the input signal. This property applies when you downsample the chrominance values.

Horizontal filter coefficients, specified as a three-element vector. This property applies when you set theResampling财产[4:4:4至4:2:2]|[4:4:4至4:2:0(MPEG1)]|[4:4:4至4:2:0(MPEG2)]|[[4:4:4 to 4:1:1]反式缩放库财产为Property

指定滤波器系数以应用于输入信号,,,,specifie as a two-element vector. This property applies when you set theResampling财产[4:4:4至4:2:0(MPEG1)]|[4:4:4至4:2:0(MPEG2)]|[[4:2:2 to 4:2:0 (MPEG1)]|[4:2:2至4:2:0(MPEG2)]反式缩放库财产为Property

输入是行 - 马约尔格式,指定为trueor错误的。Set this property totrue当输入首先包含从第一行中的数据元素时,然后从第二行中的数据元素,依此类推,依此类推。否则,该对象假设输入数据以列格式存储。

Usage

描述

例子

[[CB1,,,,cr1] = resampler(CB,,,,crresamples the input chrominance components Cb and Cr and returns Cb1 and Cr1, as the resampled outputs.

输入参数

展开全部

图像的镀色成分,指定为矩阵。

图像的镀色成分,指定为矩阵。

输出参数

展开全部

图像的镀色成分,返回为矩阵。

图像的镀色成分,返回为矩阵。

对象功能

To use an object function, specify the System object™ as the first input argument. For example, to release system resources of a System object namedOBJ,,,,use this syntax:

释放(OBJ)

展开全部

系统对象算法
发布 释放资源并允许更改系统对象属性值和输入特征
重置 Reset internal states of系统对象

例子

全部收缩

create a resampler object

RESAMPLER = VISION.CHROMARESAMPLER;

Read an RGB image and convert it to YCbCr.

imageRGB = imread('peppers.png');ImageCBCR = RGB2YCBCR(ImagerGB);

重新采样CB和Cr Chrominance组件。

[[CB,,,,cr] = resampler(imageYCbCr(:,:,2), imageYCbCr(:,:,3));

扩展功能

也可以看看

Introduced in R2012a