@@ -235,7 +235,7 @@ def rotate(image, theta, is_crop = True, method = INTERP.NEAREST):
235
235
"""
236
236
output = Array ()
237
237
safe_call (backend .get ().af_rotate (ct .pointer (output .arr ), image .arr ,
238
- ct .c_double (theta ), is_crop , method .value ))
238
+ ct .c_float (theta ), is_crop , method .value ))
239
239
return output
240
240
241
241
def translate (image , trans0 , trans1 , odim0 = 0 , odim1 = 0 , method = INTERP .NEAREST ):
@@ -318,7 +318,7 @@ def scale(image, scale0, scale1, odim0 = 0, odim1 = 0, method = INTERP.NEAREST):
318
318
"""
319
319
output = Array ()
320
320
safe_call (backend .get ().af_scale (ct .pointer (output .arr ),
321
- image .arr , ct .c_double (scale0 ), ct .c_double (scale1 ),
321
+ image .arr , ct .c_float (scale0 ), ct .c_float (scale1 ),
322
322
ct .c_longlong (odim0 ), ct .c_longlong (odim1 ), method .value ))
323
323
return output
324
324
@@ -363,7 +363,7 @@ def skew(image, skew0, skew1, odim0 = 0, odim1 = 0, method = INTERP.NEAREST, is_
363
363
"""
364
364
output = Array ()
365
365
safe_call (backend .get ().af_skew (ct .pointer (output .arr ),
366
- image .arr , ct .c_double (skew0 ), ct .c_double (skew1 ),
366
+ image .arr , ct .c_float (skew0 ), ct .c_float (skew1 ),
367
367
ct .c_longlong (odim0 ), ct .c_longlong (odim1 ),
368
368
method .value , is_inverse ))
369
369
@@ -408,7 +408,7 @@ def histogram(image, nbins, min_val = None, max_val = None):
408
408
output = Array ()
409
409
safe_call (backend .get ().af_histogram (ct .pointer (output .arr ),
410
410
image .arr , ct .c_uint (nbins ),
411
- ct .c_double (min_val ), ct .c_double (max_val )))
411
+ ct .c_float (min_val ), ct .c_float (max_val )))
412
412
return output
413
413
414
414
def hist_equal (image , hist ):
@@ -580,8 +580,8 @@ def bilateral(image, s_sigma, c_sigma, is_color = False):
580
580
"""
581
581
output = Array ()
582
582
safe_call (backend .get ().af_bilateral (ct .pointer (output .arr ),
583
- image .arr , ct .c_double (s_sigma ),
584
- ct .c_double (c_sigma ), is_color ))
583
+ image .arr , ct .c_float (s_sigma ),
584
+ ct .c_float (c_sigma ), is_color ))
585
585
return output
586
586
587
587
def mean_shift (image , s_sigma , c_sigma , n_iter , is_color = False ):
@@ -615,7 +615,7 @@ def mean_shift(image, s_sigma, c_sigma, n_iter, is_color = False):
615
615
"""
616
616
output = Array ()
617
617
safe_call (backend .get ().af_mean_shift (ct .pointer (output .arr ),
618
- image .arr , ct .c_double (s_sigma ), ct .c_double (c_sigma ),
618
+ image .arr , ct .c_float (s_sigma ), ct .c_float (c_sigma ),
619
619
ct .c_uint (n_iter ), is_color ))
620
620
return output
621
621
0 commit comments