Map input pixel to output pixel using custom rule
The visionhdl.LookupTable
System
object™ uses a custom one-to-one map to convert between an input pixel value and
an output pixel value.
This object uses a streaming pixel interface with a structure
for frame control signals. This interface enables the object to operate independently of image
size and format, and to connect with other Vision HDL
Toolbox™ objects. The object accepts and returns a scalar pixel value. The object accepts
and returns control signals as a structure containing five signals. The control signals indicate
the validity of each pixel and its location in the frame. To convert a pixel matrix into a pixel
stream and control signals, use the visionhdl.FrameToPixels
object. For a full
description of the interface, see Streaming Pixel Interface.
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, LUT
= visionhdl.LookupTableLUT
, that performs a one-to-one mapping between the
input pixel and output pixel, according to the lookup table contents.
returns a lookup table System
object, LUT
= visionhdl.LookupTable(tabledata
)LUT
, with the table contents set to
TABLEDATA
.
|
One-to-one correspondence between input pixels and output pixels, specified as a vector. This argument sets the Table property value. |
|
|
|
Map between input pixel values and output pixel values.
Default: |
step | Map input pixel to output pixel based on table contents |
Common to All System Objects | |
---|---|
release | Allow System object property value changes |
This object implements the algorithms described on the Lookup Table block reference page.