View Source Evision.CUDA.BufferPool (Evision v0.1.21)

Link to this section Summary

Types

t()

Type that represents an Evision.CUDA.BufferPool struct.

Link to this section Types

@type t() :: %Evision.CUDA.BufferPool{ref: reference()}

Type that represents an Evision.CUDA.BufferPool struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

@spec bufferPool(Evision.CUDA.Stream.t()) :: t() | {:error, String.t()}

BufferPool

Positional Arguments
Return

Python prototype (for reference only):

BufferPool(stream) -> <cuda_BufferPool object>
@spec getAllocator(t()) :: reference() | {:error, String.t()}

getAllocator

Positional Arguments
  • self: Evision.CUDA.BufferPool.t()
Return
  • retval: Ptr<GpuMat::Allocator>

Python prototype (for reference only):

getAllocator() -> retval
Link to this function

getBuffer(self, size, type)

View Source
@spec getBuffer(t(), {number(), number()}, integer()) ::
  Evision.CUDA.GpuMat.t() | {:error, String.t()}

getBuffer

Positional Arguments
  • self: Evision.CUDA.BufferPool.t()
  • size: Size
  • type: int
Return

Python prototype (for reference only):

getBuffer(size, type) -> retval
Link to this function

getBuffer(self, rows, cols, type)

View Source
@spec getBuffer(t(), integer(), integer(), integer()) ::
  Evision.CUDA.GpuMat.t() | {:error, String.t()}

getBuffer

Positional Arguments
  • self: Evision.CUDA.BufferPool.t()
  • rows: int
  • cols: int
  • type: int
Return

Python prototype (for reference only):

getBuffer(rows, cols, type) -> retval