visionhdl.LookupTable
Map input pixel to output pixel using custom rule
Description
The visionhdl.LookupTable
System object™ uses a custom one-to-one map to convert between an input pixel value and
an output pixel value.
To map an input pixel value to an output pixel value:
Create the
visionhdl.LookupTable
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?
Creation
Syntax
LUT = visionhdl.LookupTable(tabledata)
Description
LUT = visionhdl.LookupTable(
returns a lookup table System object that performs a one-to-one mapping between an input pixel and an
output pixel. The mapping is defined by the Table property, which is
set to the value of tabledata
)tabledata
.
Properties
Usage
Syntax
[pixelout,ctrlout] = LUT(pixelin,ctrlin)
Description
[
returns the pixel value, pixelout
,ctrlout
] = LUT(pixelin
,ctrlin
)pixelout
, located in the table at the
address specified by the input pixel value, pixelin
.
The object delays the
input control signals, ctrlin
, to align the output control
signals, ctrlout
, with the output data.
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 and 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.
Input Arguments
Output Arguments
Object Functions
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)