Apply or remove gamma correction from images or video streams
To apply gamma correction to input images or a video stream:
Create the vision.GammaCorrector
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?.
returns
a gamma corrector object, gammaCorr
= vision.GammaCorrectorgammaCorr
. You can use the gamma
corrector to apply or remove gamma correction from images or video streams.
sets properties using one or more name-value pairs. Enclose each property name in
quotes. For example, gammaCorr
= vision.GammaCorrector(Name,Value
)gammaCorr =
vision.GammaCorrector('Correction','Gamma')
additionally sets the gammaCorr
= vision.GammaCorrector(gamma
,Name,Value
)Gamma
property.
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)