Regular API function

simSetVisionSensorFilter

Description Sets the parameters and settings of a specific filter component of a vision sensor. See also simGetVisionSensorFilter and the other vision sensor related API functions.
C synopsis simInt simSetVisionSensorFilter(simInt visionSensorHandle,simInt filterIndex,simInt options,const simInt* pSizes,const simUChar* bytes,const simInt* ints,const simFloat* floats,const simUChar* custom)
C parameters
visionSensorHandle: handle of a vision sensor. See also simGetObjectHandle.
filterIndex: the zero-based index of the filter position.
options: bit-coded value:
bit 0 set (1): the component is enabled
pSizes: a pointer to 4 integer values indicating the sizes of the provided buffers (see next 4 arguments).
bytes: a buffer of bytes values representing the byte parameters of the filter component.
ints: a buffer of ints values representing the int parameters of the filter component.
floats: a buffer of floats values representing the float parameters of the filter component.
custom: a buffer of bytes values representing the custom parameters of the filter component.
C return value
-1 in case of an error, 0 if the filterIndex is not valid, otherwise the type of filter component pointed by the filterIndex.
Lua synopsis number filterType=simSetVisionSensorFilter(number sensorHandle,number filterIndex,number options,table byteVals,table intVals,table floatVals,string customBuffer)
Lua parameters
Similar as C-function
Lua return values
Same as C-function

All regular API functions on one page