@@ -199,7 +199,7 @@ where
199199 let mut res = Array3 :: < _ > :: zeros ( ( image. rows ( ) , image. cols ( ) , HSV :: channels ( ) ) ) ;
200200 let window = image. data . windows ( ( 1 , 1 , image. channels ( ) ) ) ;
201201
202- Zip :: indexed ( window) . apply ( |( i, j, _) , pix| {
202+ Zip :: indexed ( window) . for_each ( |( i, j, _) , pix| {
203203 let red = pix[ [ 0 , 0 , 0 ] ] ;
204204 let green = pix[ [ 0 , 0 , 1 ] ] ;
205205 let blue = pix[ [ 0 , 0 , 2 ] ] ;
@@ -228,7 +228,7 @@ where
228228 let mut res = Array3 :: < T > :: zeros ( ( image. rows ( ) , image. cols ( ) , RGB :: channels ( ) ) ) ;
229229 let window = image. data . windows ( ( 1 , 1 , image. channels ( ) ) ) ;
230230
231- Zip :: indexed ( window) . apply ( |( i, j, _) , pix| {
231+ Zip :: indexed ( window) . for_each ( |( i, j, _) , pix| {
232232 let h = pix[ [ 0 , 0 , 0 ] ] ;
233233 let s = pix[ [ 0 , 0 , 1 ] ] ;
234234 let v = pix[ [ 0 , 0 , 2 ] ] ;
@@ -257,7 +257,7 @@ where
257257 let mut res = Array3 :: < T > :: zeros ( ( image. rows ( ) , image. cols ( ) , Gray :: channels ( ) ) ) ;
258258 let window = image. data . windows ( ( 1 , 1 , image. channels ( ) ) ) ;
259259
260- Zip :: indexed ( window) . apply ( |( i, j, _) , pix| {
260+ Zip :: indexed ( window) . for_each ( |( i, j, _) , pix| {
261261 let r = normalise_pixel_value ( pix[ [ 0 , 0 , 0 ] ] ) ;
262262 let g = normalise_pixel_value ( pix[ [ 0 , 0 , 1 ] ] ) ;
263263 let b = normalise_pixel_value ( pix[ [ 0 , 0 , 2 ] ] ) ;
@@ -288,7 +288,7 @@ where
288288 let mut res = Array3 :: < T > :: zeros ( ( image. rows ( ) , image. cols ( ) , RGB :: channels ( ) ) ) ;
289289 let window = image. data . windows ( ( 1 , 1 , image. channels ( ) ) ) ;
290290
291- Zip :: indexed ( window) . apply ( |( i, j, _) , pix| {
291+ Zip :: indexed ( window) . for_each ( |( i, j, _) , pix| {
292292 let gray = pix[ [ 0 , 0 , 0 ] ] ;
293293
294294 res. slice_mut ( s ! [ i, j, ..] )
@@ -321,7 +321,7 @@ where
321321 [ 0.0139322 , 0.0971045 , 0.7141733 ] ,
322322 ] ) ;
323323
324- Zip :: indexed ( window) . apply ( |( i, j, _) , pix| {
324+ Zip :: indexed ( window) . for_each ( |( i, j, _) , pix| {
325325 let pixel = pix
326326 . index_axis ( Axis ( 0 ) , 0 )
327327 . index_axis ( Axis ( 0 ) , 0 )
@@ -360,7 +360,7 @@ where
360360 [ 0.0719453 , -0.2289914 , 1.4052427 ] ,
361361 ] ) ;
362362
363- Zip :: indexed ( window) . apply ( |( i, j, _) , pix| {
363+ Zip :: indexed ( window) . for_each ( |( i, j, _) , pix| {
364364 let pixel = pix
365365 . index_axis ( Axis ( 0 ) , 0 )
366366 . index_axis ( Axis ( 0 ) , 0 )
0 commit comments