opencvdnogc 0.0.6

OpenCV Wrapper for dlang


To use this package, run the following command in your project's root directory:

Opencvd NOGC

  • Unofficial OpenCV binding for D programming language
  • GC-free version of opencvd
  • Please refer to opencvd for building the binding.

Memory

  • Uses dplug:core for Vec!T and manual memory management.
  • All return types are slices or vector of slices of malloc-ed memory, and they have to be cleaned up by user such that:
Vec!(Point[]) contours = findContours(bimage, RETR_CCOMP, CHAIN_APPROX_SIMPLE);
Destroy(contours);
...
Vec!(Point2f[]) facets;
Point2f[] centers;

scope(exit){
    Destroy(facets);
    Destroy(centers);
}

subdiv.getVoronoiFacetList(null, facets, centers);

// returning strings has to be freed too!
string ocvver = opencvVersion();

printf("%s \n", ocvver.ptr);

Destroy(ocvver);

Authors:
  • Ferhat Kurtulmuş
Dependencies:
dplug:core
Versions:
0.0.6 2019-Oct-14
Show all 1 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 3 downloads total

Score:
0.0
Short URL:
opencvdnogc.dub.pm