View Source Evision.CUDA.SURFCUDA (Evision v0.1.38)

Summary

Types

t()

Type that represents an CUDA.SURFCUDA struct.

Functions

defaultNorm

descriptorSize

Finds the keypoints using fast hessian detector used in SURF

Finds the keypoints using fast hessian detector used in SURF

Finds the keypoints and computes their descriptors using fast hessian detector used in SURF

Finds the keypoints and computes their descriptors using fast hessian detector used in SURF

Types

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

Type that represents an CUDA.SURFCUDA struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

Link to this function

create(hessianThreshold)

View Source
@spec create(number()) :: t() | {:error, String.t()}

create

Positional Arguments
  • hessianThreshold: double.

    Threshold for hessian keypoint detector used in SURF.

Keyword Arguments
  • nOctaves: int.

    Number of pyramid octaves the keypoint detector will use.

  • nOctaveLayers: int.

    Number of octave layers within each octave.

  • extended: bool.

    Extended descriptor flag (true - use extended 128-element descriptors; false - use 64-element descriptors).

  • keypointsRatio: float.

    Limits a maximum number of features

  • upright: bool.

    Up-right or rotated features flag (true - do not compute orientation of features; false - compute orientation).

Return
  • retval: SURF_CUDA

Python prototype (for reference only):

create(_hessianThreshold[, _nOctaves[, _nOctaveLayers[, _extended[, _keypointsRatio[, _upright]]]]]) -> retval
Link to this function

create(hessianThreshold, opts)

View Source
@spec create(number(), [{atom(), term()}, ...] | nil) :: t() | {:error, String.t()}

create

Positional Arguments
  • hessianThreshold: double.

    Threshold for hessian keypoint detector used in SURF.

Keyword Arguments
  • nOctaves: int.

    Number of pyramid octaves the keypoint detector will use.

  • nOctaveLayers: int.

    Number of octave layers within each octave.

  • extended: bool.

    Extended descriptor flag (true - use extended 128-element descriptors; false - use 64-element descriptors).

  • keypointsRatio: float.

    Limits a maximum number of features

  • upright: bool.

    Up-right or rotated features flag (true - do not compute orientation of features; false - compute orientation).

Return
  • retval: SURF_CUDA

Python prototype (for reference only):

create(_hessianThreshold[, _nOctaves[, _nOctaveLayers[, _extended[, _keypointsRatio[, _upright]]]]]) -> retval
@spec defaultNorm(t()) :: integer() | {:error, String.t()}

defaultNorm

Positional Arguments
  • self: Evision.CUDA.SURFCUDA.t()
Return
  • retval: int

Python prototype (for reference only):

defaultNorm() -> retval
@spec descriptorSize(t()) :: integer() | {:error, String.t()}

descriptorSize

Positional Arguments
  • self: Evision.CUDA.SURFCUDA.t()
Return
  • retval: int

Python prototype (for reference only):

descriptorSize() -> retval

Finds the keypoints using fast hessian detector used in SURF

Positional Arguments
  • self: Evision.CUDA.SURFCUDA.t()

  • img: Evision.CUDA.GpuMat.t().

    Source image, currently supports only CV_8UC1 images.

  • mask: Evision.CUDA.GpuMat.t().

    A mask image same size as src and of type CV_8UC1.

Return
  • keypoints: Evision.CUDA.GpuMat.t().

    Detected keypoints.

Python prototype (for reference only):

detect(img, mask[, keypoints]) -> keypoints
Link to this function

detect(self, img, mask, opts)

View Source
@spec detect(
  t(),
  Evision.CUDA.GpuMat.t(),
  Evision.CUDA.GpuMat.t(),
  [{atom(), term()}, ...] | nil
) ::
  Evision.CUDA.GpuMat.t() | {:error, String.t()}

Finds the keypoints using fast hessian detector used in SURF

Positional Arguments
  • self: Evision.CUDA.SURFCUDA.t()

  • img: Evision.CUDA.GpuMat.t().

    Source image, currently supports only CV_8UC1 images.

  • mask: Evision.CUDA.GpuMat.t().

    A mask image same size as src and of type CV_8UC1.

Return
  • keypoints: Evision.CUDA.GpuMat.t().

    Detected keypoints.

Python prototype (for reference only):

detect(img, mask[, keypoints]) -> keypoints
Link to this function

detectWithDescriptors(self, img, mask)

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

Finds the keypoints and computes their descriptors using fast hessian detector used in SURF

Positional Arguments
  • self: Evision.CUDA.SURFCUDA.t()

  • img: Evision.CUDA.GpuMat.t().

    Source image, currently supports only CV_8UC1 images.

  • mask: Evision.CUDA.GpuMat.t().

    A mask image same size as src and of type CV_8UC1.

Keyword Arguments
  • useProvidedKeypoints: bool.

    Compute descriptors for the user-provided keypoints and recompute keypoints direction.

Return
  • keypoints: Evision.CUDA.GpuMat.t().

    Detected keypoints.

  • descriptors: Evision.CUDA.GpuMat.t().

    Keypoint descriptors.

Python prototype (for reference only):

detectWithDescriptors(img, mask[, keypoints[, descriptors[, useProvidedKeypoints]]]) -> keypoints, descriptors
Link to this function

detectWithDescriptors(self, img, mask, opts)

View Source
@spec detectWithDescriptors(
  t(),
  Evision.CUDA.GpuMat.t(),
  Evision.CUDA.GpuMat.t(),
  [{atom(), term()}, ...] | nil
) :: {Evision.CUDA.GpuMat.t(), Evision.CUDA.GpuMat.t()} | {:error, String.t()}

Finds the keypoints and computes their descriptors using fast hessian detector used in SURF

Positional Arguments
  • self: Evision.CUDA.SURFCUDA.t()

  • img: Evision.CUDA.GpuMat.t().

    Source image, currently supports only CV_8UC1 images.

  • mask: Evision.CUDA.GpuMat.t().

    A mask image same size as src and of type CV_8UC1.

Keyword Arguments
  • useProvidedKeypoints: bool.

    Compute descriptors for the user-provided keypoints and recompute keypoints direction.

Return
  • keypoints: Evision.CUDA.GpuMat.t().

    Detected keypoints.

  • descriptors: Evision.CUDA.GpuMat.t().

    Keypoint descriptors.

Python prototype (for reference only):

detectWithDescriptors(img, mask[, keypoints[, descriptors[, useProvidedKeypoints]]]) -> keypoints, descriptors
Link to this function

downloadKeypoints(self, keypointsGPU)

View Source
@spec downloadKeypoints(t(), Evision.CUDA.GpuMat.t()) ::
  [Evision.KeyPoint.t()] | {:error, String.t()}

downloadKeypoints

Positional Arguments
  • self: Evision.CUDA.SURFCUDA.t()
  • keypointsGPU: Evision.CUDA.GpuMat.t()
Return
  • keypoints: [Evision.KeyPoint]

Python prototype (for reference only):

downloadKeypoints(keypointsGPU) -> keypoints
@spec get_extended(t()) :: boolean()
Link to this function

get_hessianThreshold(self)

View Source
@spec get_hessianThreshold(t()) :: number()
Link to this function

get_keypointsRatio(self)

View Source
@spec get_keypointsRatio(t()) :: number()
@spec get_nOctaveLayers(t()) :: integer()
@spec get_nOctaves(t()) :: integer()
@spec get_upright(t()) :: boolean()