Node object used to generate an Optical Flow node.
More...
Inherits tiovx.node.Node.
|
def | __init__ (self, pyr_in1, pyr_in2, array_in3, array_in4, array_out5, termination6, epsilon7, num_iters8, use_initial_estimate9, window_dim10, name="default", target=Target.DEFAULT) |
| Constructor used to create this object. More...
|
|
def | setParams (self, num_in, num_out, param_type_args) |
| Specify number of input/output parameters and data object type for each. More...
|
|
def | setTarget (self, target) |
| Specify target on which to run this node. More...
|
|
def | setKernelEnumName (self, kernel_enum_name) |
| Specify kernel enum name to use. More...
|
|
Node object used to generate an Optical Flow node.
- Example Usage: Creating Optical Flow node
Definition at line 1397 of file node.py.
◆ __init__()
def tiovx.node.NodeOpticalFlowPyrLK.__init__ |
( |
|
self, |
|
|
|
pyr_in1, |
|
|
|
pyr_in2, |
|
|
|
array_in3, |
|
|
|
array_in4, |
|
|
|
array_out5, |
|
|
|
termination6, |
|
|
|
epsilon7, |
|
|
|
num_iters8, |
|
|
|
use_initial_estimate9, |
|
|
|
window_dim10, |
|
|
|
name = "default" , |
|
|
|
target = Target.DEFAULT |
|
) |
| |
Constructor used to create this object.
- See also
- vxOpticalFlowPyrLKNode for more details about the parameters
- Parameters
-
pyr_in1 | [in] First input pyramid |
pyr_in2 | [in] Second input pyramid |
array_in3 | [in] First input points array |
array_in4 | [in] Second input points array |
array_out5 | [out] Output points array |
termination6 | [in] Input scalar termination value |
epsilon7 | [in] Input scalar epsilon value |
num_iters8 | [in] Number of iterations scalar input |
use_initial_estimate9 | [in] Boolean input |
window_dim10 | [in] Window size scalar input |
name | [in] [optional] Name of the node; Default="default" |
target | [in] [optional] Default core to run on; Default="Target.DEFAULT" |
Definition at line 1414 of file node.py.
◆ setParams()
def tiovx.node.Node.setParams |
( |
|
self, |
|
|
|
num_in, |
|
|
|
num_out, |
|
|
|
param_type_args |
|
) |
| |
|
inherited |
Specify number of input/output parameters and data object type for each.
Assumes input parameters are followed by output parameters. It is recommended user kernels follow this convention.
- Parameters
-
num_in | [in] Number of inputs |
num_out | [in] Number of outputs |
param_type_args | [in] Variable number of args list of type tiovx.enums.Type to specify data object types.
Number of arguments MUST match num_in+num_out |
Definition at line 327 of file node.py.
◆ setTarget()
def tiovx.node.Node.setTarget |
( |
|
self, |
|
|
|
target |
|
) |
| |
|
inherited |
Specify target on which to run this node.
- Parameters
-
Definition at line 339 of file node.py.
◆ setKernelEnumName()
def tiovx.node.Node.setKernelEnumName |
( |
|
self, |
|
|
|
kernel_enum_name |
|
) |
| |
|
inherited |
Specify kernel enum name to use.
Use "VX_USER_KERNEL" as 'kernel_enum_name' for custom/user kernels
- Parameters
-
kernel_enum_name | [in] Type string. |
Definition at line 354 of file node.py.
The documentation for this class was generated from the following file: