Skip to content

Commit 98e39b3

Browse files
tomerdmntpavanky
authored andcommitted
fix af_sift call
1 parent 718b8fc commit 98e39b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arrayfire/vision.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,9 @@ def sift(image, num_layers=3, contrast_threshold=0.04, edge_threshold=10.0, init
345345

346346
feat = Features()
347347
desc = Array()
348-
safe_call(af_sift(c_pointer(feat), c_pointer(desc),
349-
image.arr, num_layers, contrast_threshold, edge_threshold,
350-
initial_sigma, double_input, intensity_scale, feature_ratio))
348+
safe_call(backend.get().af_sift(c_pointer(feat.feat), c_pointer(desc.arr),
349+
image.arr, num_layers, c_float_t(contrast_threshold), c_float_t(edge_threshold),
350+
c_float_t(initial_sigma), double_input, c_float_t(intensity_scale), c_float_t(feature_ratio)))
351351

352352
return (feat, desc)
353353

0 commit comments

Comments
 (0)