Construct full RGB pixel data from Bayer pattern pixels
visionhdl.DemosaicInterpolator
provides a Bayer
pattern interpolation filter for streaming video data. You can select a low complexity
bilinear interpolation, or a moderate complexity gradient-corrected bilinear
interpolation. The object implements the calculations using hardware-efficient
algorithms for HDL code generation.
The object performs bilinear interpolation on a 3×3 pixel window using only additions and bit shifts.
The object performs gradient correction on a 5×5 pixel window. The object implements the calculation using bit shift, addition, and low order Canonical Signed Digit (CSD) multiply.
Note
Starting in R2016b, instead of using the step
method to perform the operation defined by the System object™, you can call the object with arguments, as if it were a function. For
example, y = step(obj,x)
and y = obj(x)
perform equivalent operations.
returns a
System object, D
= visionhdl.DemosaicInterpolatorD
, that interpolates R'G'B' data from a Bayer
pattern pixel stream.
returns a System object, D
= visionhdl.DemosaicInterpolator(Name
,Value
)D
, with additional options specified by one or more
Name
,Value
pair arguments.
Name
is a property name and Value
is the
corresponding value. Name
must appear inside single quotes
(''
). You can specify several name-value pair arguments in any
order as Name1,Value1,...,NameN,ValueN
. Properties not specified
retain their default values.
|
Algorithm the object uses to calculate the missing pixel values.
|
|
Color sequence of the pixels in the input stream. Specify the sequence of R, G, and B pixels that correspond to the 2-by-2
block of pixels in the top-left corner of the input image. Specify the
sequence in left-to-right, top-to-bottom order. For instance, the default
value, |
|
Specify a power of two that accommodates the number of active pixels in a single horizontal line. Choose a power of 2 that accommodates the number of active pixels in a
horizontal line. If you specify a value that is not a power of two, the
object uses the next largest power of two. When you set
Default: 2048 |
step | Demosaic a Bayer pattern video stream |
Common to All System Objects | |
---|---|
release | Allow System object property value changes |
This object implements the algorithms described on the Demosaic Interpolator block reference page.
Demosaic Interpolator | visionhdl.FrameToPixels
| demosaic
(Image Processing Toolbox)