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

Summary

Types

t()

Type that represents an CUDA.SURFCUDA struct.

Functions

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

@spec create(Keyword.t()) :: any() | {:error, String.t()}
@spec create(number()) :: t() | {:error, String.t()}

create

Positional Arguments
  • hessianThreshold: double.

    Threshold for hessian keypoint detector used in SURF.

Keyword Arguments
  • nOctaves: integer().

    Number of pyramid octaves the keypoint detector will use.

  • nOctaveLayers: integer().

    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(),
  [
    extended: term(),
    keypointsRatio: term(),
    nOctaveLayers: term(),
    nOctaves: term(),
    upright: term()
  ]
  | nil
) :: t() | {:error, String.t()}

create

Positional Arguments
  • hessianThreshold: double.

    Threshold for hessian keypoint detector used in SURF.

Keyword Arguments
  • nOctaves: integer().

    Number of pyramid octaves the keypoint detector will use.

  • nOctaveLayers: integer().

    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(Keyword.t()) :: any() | {:error, String.t()}
@spec defaultNorm(t()) :: integer() | {:error, String.t()}

defaultNorm

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

Python prototype (for reference only):

defaultNorm() -> retval
Link to this function

descriptorSize(named_args)

View Source
@spec descriptorSize(Keyword.t()) :: any() | {:error, String.t()}
@spec descriptorSize(t()) :: integer() | {:error, String.t()}

descriptorSize

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

Python prototype (for reference only):

descriptorSize() -> retval
@spec detect(Keyword.t()) :: any() | {: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

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(named_args)

View Source
@spec detectWithDescriptors(Keyword.t()) :: any() | {:error, String.t()}
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(),
  [{:useProvidedKeypoints, 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(named_args)

View Source
@spec downloadKeypoints(Keyword.t()) :: any() | {:error, String.t()}
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()