User`s guide
ReturnedColorSpace
Purpose Specify color space used in MATLAB
Description The ReturnedColorSpace property specifies the co lo r space you
wantthetoolboxtousewhenitreturnsimagedatatotheMATLAB
workspace. This is only relevant when you are accessing acquired image
data with the
getsnapshot, getdata,andpeekdata functions.
This property can have any o f the following values :
Value
Description
'grayscale'
MATLAB grayscale color space.
'rgb'
MATLAB RGB color space.
'YCbCr'
MATLAB YCbCr color space. This is often referred to
as YUV.
'bayer'
Convert grayscale Bayer color patterns to RGB images.
The
bayer color space option is only available if your
camera’s default returned color space is
grayscale.
To use the
BayerSensorAlignment property, you must
set the
ReturnedColorSpace property to ba yer.
Characteristics
Access R ead/write
Data type
String
Values Defined at object creation time and depends on t he
video format selected
See Also Functions
getdata, g etsnapshot, p eekdata, vide oinp ut
Properties
BayerSensorAlignment, VideoFormat
14-29