@@ -235,7 +235,7 @@ def rotate(image, theta, is_crop = True, method = INTERP.NEAREST):
235235 """
236236 output = Array ()
237237 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 ))
239239 return output
240240
241241def 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):
318318 """
319319 output = Array ()
320320 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 ),
322322 ct .c_longlong (odim0 ), ct .c_longlong (odim1 ), method .value ))
323323 return output
324324
@@ -363,7 +363,7 @@ def skew(image, skew0, skew1, odim0 = 0, odim1 = 0, method = INTERP.NEAREST, is_
363363 """
364364 output = Array ()
365365 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 ),
367367 ct .c_longlong (odim0 ), ct .c_longlong (odim1 ),
368368 method .value , is_inverse ))
369369
@@ -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_double (min_val ), ct .c_double (max_val )))
411+ ct .c_float (min_val ), ct .c_float (max_val )))
412412 return output
413413
414414def hist_equal (image , hist ):
@@ -580,8 +580,8 @@ def bilateral(image, s_sigma, c_sigma, is_color = False):
580580 """
581581 output = Array ()
582582 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 ))
585585 return output
586586
587587def 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):
615615 """
616616 output = Array ()
617617 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 ),
619619 ct .c_uint (n_iter ), is_color ))
620620 return output
621621
0 commit comments