Skip to content

GraphPortMap

Core and matricestypeOpenCV 5.0.0
import type { GraphPortMap } from '@banou/opencv-wasm'

Native node and callback value types for each supported custom graph port.

export interface GraphPortMap {
  mat: { 
  node: GMat, 
  value: Mat }
  scalar: { 
  node: GScalar, 
  value: Scalar }
  'opaque:int': { 
  node: GOpaque_int, 
  value: number }
  'opaque:double': { 
  node: GOpaque_double, 
  value: number }
  'array:int': { 
  node: GArray_int, 
  value: number[] }
  'array:point2f': { 
  node: GArray_Point2f, 
  value: Point2f[] }
  'array:point3f': { 
  node: GArray_Point3f, 
  value: Point3f[] }
  'opaque:rect': { 
  node: GOpaque_Rect, 
  value: Rect }
  'array:point': { 
  node: GArray_Point2i, 
  value: Point[] }
  'array:rect': { 
  node: GArray_Rect, 
  value: Rect[] }
  'opaque:size': { 
  node: GOpaque_Size, 
  value: Size }
  'array:uint64': { 
  node: GArray_uint64_t, 
  value: bigint[] }
  'array:prim': { 
  node: GArray_Prim, 
  value: GDrawPrim[] }
  'array:int64': { 
  node: GArray_int64_t, 
  value: bigint[] }
  'opaque:int64': { 
  node: GOpaque_int64_t, 
  value: bigint }
  'array:double': { 
  node: GArray_double, 
  value: number[] }
  'array:float': { 
  node: GArray_float, 
  value: number[] }
  'opaque:float': { 
  node: GOpaque_float, 
  value: number }
  'opaque:uint64': { 
  node: GOpaque_uint64_t, 
  value: bigint }
  'array:bool': { 
  node: GArray_bool, 
  value: boolean[] }
  'opaque:bool': { 
  node: GOpaque_bool, 
  value: boolean }
  'array:string': { 
  node: GArray_string, 
  value: string[] }
  'opaque:string': { 
  node: GOpaque_string, 
  value: string }
  'opaque:point': { 
  node: GOpaque_Point, 
  value: Point }
  'opaque:point2f': { 
  node: GOpaque_Point2f, 
  value: Point2f }
  'opaque:point3f': { 
  node: GOpaque_Point3f, 
  value: Point3f }
  'array:size': { 
  node: GArray_Size, 
  value: Size[] }
  'array:mat': { 
  node: GArray_Mat, 
  value: Mat[] }
  'array:scalar': { 
  node: GArray_Scalar, 
  value: Scalar[] }
}

Constructors and members

mat

Graph node and runtime value types for a mat port.

mat: { 
  node: GMat, 
  value: Mat }

scalar

Graph node and runtime value types for a scalar port.

scalar: { 
  node: GScalar, 
  value: Scalar }

opaque:int

Graph node and runtime value types for a opaque:int port.

'opaque:int': { 
  node: GOpaque_int, 
  value: number }

opaque:double

Graph node and runtime value types for a opaque:double port.

'opaque:double': { 
  node: GOpaque_double, 
  value: number }

array:int

Graph node and runtime value types for a array:int port.

'array:int': { 
  node: GArray_int, 
  value: number[] }

array:point2f

Graph node and runtime value types for a array:point2f port.

'array:point2f': { 
  node: GArray_Point2f, 
  value: Point2f[] }

array:point3f

Graph node and runtime value types for a array:point3f port.

'array:point3f': { 
  node: GArray_Point3f, 
  value: Point3f[] }

opaque:rect

Graph node and runtime value types for a opaque:rect port.

'opaque:rect': { 
  node: GOpaque_Rect, 
  value: Rect }

array:point

Graph node and runtime value types for a array:point port.

'array:point': { 
  node: GArray_Point2i, 
  value: Point[] }

array:rect

Graph node and runtime value types for a array:rect port.

'array:rect': { 
  node: GArray_Rect, 
  value: Rect[] }

opaque:size

Graph node and runtime value types for a opaque:size port.

'opaque:size': { 
  node: GOpaque_Size, 
  value: Size }

array:uint64

Graph node and runtime value types for a array:uint64 port.

'array:uint64': { 
  node: GArray_uint64_t, 
  value: bigint[] }

array:prim

Graph node and runtime value types for a array:prim port.

'array:prim': { 
  node: GArray_Prim, 
  value: GDrawPrim[] }

array:int64

Graph node and runtime value types for a array:int64 port.

'array:int64': { 
  node: GArray_int64_t, 
  value: bigint[] }

opaque:int64

Graph node and runtime value types for a opaque:int64 port.

'opaque:int64': { 
  node: GOpaque_int64_t, 
  value: bigint }

array:double

Graph node and runtime value types for a array:double port.

'array:double': { 
  node: GArray_double, 
  value: number[] }

array:float

Graph node and runtime value types for a array:float port.

'array:float': { 
  node: GArray_float, 
  value: number[] }

opaque:float

Graph node and runtime value types for a opaque:float port.

'opaque:float': { 
  node: GOpaque_float, 
  value: number }

opaque:uint64

Graph node and runtime value types for a opaque:uint64 port.

'opaque:uint64': { 
  node: GOpaque_uint64_t, 
  value: bigint }

array:bool

Graph node and runtime value types for a array:bool port.

'array:bool': { 
  node: GArray_bool, 
  value: boolean[] }

opaque:bool

Graph node and runtime value types for a opaque:bool port.

'opaque:bool': { 
  node: GOpaque_bool, 
  value: boolean }

array:string

Graph node and runtime value types for a array:string port.

'array:string': { 
  node: GArray_string, 
  value: string[] }

opaque:string

Graph node and runtime value types for a opaque:string port.

'opaque:string': { 
  node: GOpaque_string, 
  value: string }

opaque:point

Graph node and runtime value types for a opaque:point port.

'opaque:point': { 
  node: GOpaque_Point, 
  value: Point }

opaque:point2f

Graph node and runtime value types for a opaque:point2f port.

'opaque:point2f': { 
  node: GOpaque_Point2f, 
  value: Point2f }

opaque:point3f

Graph node and runtime value types for a opaque:point3f port.

'opaque:point3f': { 
  node: GOpaque_Point3f, 
  value: Point3f }

array:size

Graph node and runtime value types for a array:size port.

'array:size': { 
  node: GArray_Size, 
  value: Size[] }

array:mat

Graph node and runtime value types for a array:mat port.

'array:mat': { 
  node: GArray_Mat, 
  value: Mat[] }

array:scalar

Graph node and runtime value types for a array:scalar port.

'array:scalar': { 
  node: GArray_Scalar, 
  value: Scalar[] }

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.