Skip to content

Commit 4a49c38

Browse files
committed
BUGFIX: fixing a bug in histogram
1 parent 86fe604 commit 4a49c38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrayfire/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def histogram(image, nbins, min_val = None, max_val = None):
408408
output = Array()
409409
safe_call(backend.get().af_histogram(ct.pointer(output.arr),
410410
image.arr, ct.c_uint(nbins),
411-
ct.c_float(min_val), ct.c_float(max_val)))
411+
ct.c_double(min_val), ct.c_double(max_val)))
412412
return output
413413

414414
def hist_equal(image, hist):

0 commit comments

Comments
 (0)