@@ -160,8 +160,8 @@ def resize(image, scale=None, odim0=None, odim1=None, method=INTERP.NEAREST):
160160
161161 output = Array ()
162162 safe_call (backend .get ().af_resize (ct .pointer (output .arr ),
163- image .arr , ct . c_longlong (odim0 ),
164- ct . c_longlong (odim1 ), method .value ))
163+ image .arr , c_dim_t (odim0 ),
164+ c_dim_t (odim1 ), method .value ))
165165
166166 return output
167167
@@ -204,7 +204,7 @@ def transform(image, trans_mat, odim0 = 0, odim1 = 0, method=INTERP.NEAREST, is_
204204 output = Array ()
205205 safe_call (backend .get ().af_transform (ct .pointer (output .arr ),
206206 image .arr , trans_mat .arr ,
207- ct . c_longlong (odim0 ), ct . c_longlong (odim1 ),
207+ c_dim_t (odim0 ), c_dim_t (odim1 ),
208208 method .value , is_inverse ))
209209 return output
210210
@@ -277,7 +277,7 @@ def translate(image, trans0, trans1, odim0 = 0, odim1 = 0, method = INTERP.NEARE
277277 output = Array ()
278278 safe_call (backend .get ().af_translate (ct .pointer (output .arr ),
279279 image .arr , trans0 , trans1 ,
280- ct . c_longlong (odim0 ), ct . c_longlong (odim1 ), method .value ))
280+ c_dim_t (odim0 ), c_dim_t (odim1 ), method .value ))
281281 return output
282282
283283def scale (image , scale0 , scale1 , odim0 = 0 , odim1 = 0 , method = INTERP .NEAREST ):
@@ -319,7 +319,7 @@ def scale(image, scale0, scale1, odim0 = 0, odim1 = 0, method = INTERP.NEAREST):
319319 output = Array ()
320320 safe_call (backend .get ().af_scale (ct .pointer (output .arr ),
321321 image .arr , ct .c_float (scale0 ), ct .c_float (scale1 ),
322- ct . c_longlong (odim0 ), ct . c_longlong (odim1 ), method .value ))
322+ c_dim_t (odim0 ), c_dim_t (odim1 ), method .value ))
323323 return output
324324
325325def skew (image , skew0 , skew1 , odim0 = 0 , odim1 = 0 , method = INTERP .NEAREST , is_inverse = True ):
@@ -364,7 +364,7 @@ def skew(image, skew0, skew1, odim0 = 0, odim1 = 0, method = INTERP.NEAREST, is_
364364 output = Array ()
365365 safe_call (backend .get ().af_skew (ct .pointer (output .arr ),
366366 image .arr , ct .c_float (skew0 ), ct .c_float (skew1 ),
367- ct . c_longlong (odim0 ), ct . c_longlong (odim1 ),
367+ c_dim_t (odim0 ), c_dim_t (odim1 ),
368368 method .value , is_inverse ))
369369
370370 return output
@@ -647,8 +647,8 @@ def medfilt(image, w0 = 3, w1 = 3, edge_pad = PAD.ZERO):
647647 """
648648 output = Array ()
649649 safe_call (backend .get ().af_medfilt (ct .pointer (output .arr ),
650- image .arr , ct . c_longlong (w0 ),
651- ct . c_longlong (w1 ), edge_pad .value ))
650+ image .arr , c_dim_t (w0 ),
651+ c_dim_t (w1 ), edge_pad .value ))
652652 return output
653653
654654def minfilt (image , w_len = 3 , w_wid = 3 , edge_pad = PAD .ZERO ):
@@ -679,8 +679,8 @@ def minfilt(image, w_len = 3, w_wid = 3, edge_pad = PAD.ZERO):
679679 """
680680 output = Array ()
681681 safe_call (backend .get ().af_minfilt (ct .pointer (output .arr ),
682- image .arr , ct . c_longlong (w_len ),
683- ct . c_longlong (w_wid ), edge_pad .value ))
682+ image .arr , c_dim_t (w_len ),
683+ c_dim_t (w_wid ), edge_pad .value ))
684684 return output
685685
686686def maxfilt (image , w_len = 3 , w_wid = 3 , edge_pad = PAD .ZERO ):
@@ -711,8 +711,8 @@ def maxfilt(image, w_len = 3, w_wid = 3, edge_pad = PAD.ZERO):
711711 """
712712 output = Array ()
713713 safe_call (backend .get ().af_maxfilt (ct .pointer (output .arr ),
714- image .arr , ct . c_longlong (w_len ),
715- ct . c_longlong (w_wid ), edge_pad .value ))
714+ image .arr , c_dim_t (w_len ),
715+ c_dim_t (w_wid ), edge_pad .value ))
716716 return output
717717
718718def regions (image , conn = CONNECTIVITY .FOUR , out_type = Dtype .f32 ):
@@ -996,9 +996,9 @@ def unwrap(image, wx, wy, sx, sy, px=0, py=0, is_column=True):
996996
997997 out = Array ()
998998 safe_call (backend .get ().af_unwrap (ct .pointer (out .arr ), image .arr ,
999- ct . c_longlong (wx ), ct . c_longlong (wy ),
1000- ct . c_longlong (sx ), ct . c_longlong (sy ),
1001- ct . c_longlong (px ), ct . c_longlong (py ),
999+ c_dim_t (wx ), c_dim_t (wy ),
1000+ c_dim_t (sx ), c_dim_t (sy ),
1001+ c_dim_t (px ), c_dim_t (py ),
10021002 is_column ))
10031003 return out
10041004
@@ -1078,10 +1078,10 @@ def wrap(a, ox, oy, wx, wy, sx, sy, px=0, py=0, is_column=True):
10781078
10791079 out = Array ()
10801080 safe_call (backend .get ().af_wrap (ct .pointer (out .arr ), a .arr ,
1081- ct . c_longlong (ox ), ct . c_longlong (oy ),
1082- ct . c_longlong (wx ), ct . c_longlong (wy ),
1083- ct . c_longlong (sx ), ct . c_longlong (sy ),
1084- ct . c_longlong (px ), ct . c_longlong (py ),
1081+ c_dim_t (ox ), c_dim_t (oy ),
1082+ c_dim_t (wx ), c_dim_t (wy ),
1083+ c_dim_t (sx ), c_dim_t (sy ),
1084+ c_dim_t (px ), c_dim_t (py ),
10851085 is_column ))
10861086 return out
10871087
0 commit comments