MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / af_release_features

Function af_release_features

src/api/c/features.cpp:15–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include <af/features.h>
14
15af_err af_release_features(af_features featHandle) {
16 try {
17 af_features_t feat = *static_cast<af_features_t *>(featHandle);
18 if (feat.n > 0) {
19 if (feat.x != 0) { AF_CHECK(af_release_array(feat.x)); }
20 if (feat.y != 0) { AF_CHECK(af_release_array(feat.y)); }
21 if (feat.score != 0) { AF_CHECK(af_release_array(feat.score)); }
22 if (feat.orientation != 0) {
23 AF_CHECK(af_release_array(feat.orientation));
24 }
25 if (feat.size != 0) { AF_CHECK(af_release_array(feat.size)); }
26 feat.n = 0;
27 }
28 delete static_cast<af_features_t *>(featHandle);
29 }
30 CATCHALL;
31 return AF_SUCCESS;
32}
33
34af_features getFeaturesHandle(const af_features_t feat) {
35 auto *featHandle = new af_features_t;

Callers 8

homographyTestFunction · 0.50
glohTestFunction · 0.50
harrisTestFunction · 0.50
siftTestFunction · 0.50
orbTestFunction · 0.50
fastTestFunction · 0.50
features.cppFile · 0.50
~featuresMethod · 0.50

Calls 1

af_release_arrayFunction · 0.70

Tested by

no test coverage detected