Downsample or upsample chrominance components of images
To downsample or upsample chrominance components of images:
Create the vision.ChromaResampler
object and set its properties.
Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects? (MATLAB).
returns
a chroma resampling object, resampler
= vision.ChromaResamplerCresampler
, that downsamples or
upsamples chroma components of a YCbCr signal to reduce the bandwidth and storage
requirements.
sets properties using one or more name-value pairs. Enclose each property name in
quotes. For example, gammaCorr
= vision.ChromaResampler(Name,Value
)resampler =
vision.ChromaResampler('InterpolationFilter','Linear')
To use an object function, specify the
System
object™ as the first input argument. For
example, to release system resources of a System
object named obj
, use
this syntax:
release(obj)