Baunsgaard commented on PR #1883:
URL: https://github.com/apache/systemds/pull/1883#issuecomment-1705534652

   > > 153 153 21112
   > 
   > And this is with the current?
   > 
   > and you would call it with something like:
   > 
   > ```r
   > X = rand(rows = 10, cols = 12, min = 0, max = 9, seed=132)
   > X = ceil(X)
   > print(toString(X))
   > Xc = img_crop(X, 5, 4, 2, 3)
   > print(toString(Xc))
   > ```
   > 
   > It correctly slice out a sub region:
   > 
   > ```
   > 1.000 6.000 3.000 4.000 7.000 4.000 4.000 5.000 8.000 2.000 2.000 9.000
   > 7.000 6.000 7.000 8.000 5.000 8.000 9.000 3.000 7.000 6.000 5.000 2.000
   > 2.000 9.000 7.000 7.000 8.000 9.000 6.000 5.000 7.000 3.000 5.000 5.000
   > 4.000 3.000 1.000 4.000 9.000 2.000 3.000 8.000 2.000 1.000 5.000 8.000
   > 4.000 3.000 8.000 7.000 1.000 4.000 3.000 8.000 4.000 7.000 6.000 4.000
   > 7.000 7.000 8.000 9.000 6.000 1.000 4.000 7.000 6.000 8.000 4.000 6.000
   > 8.000 5.000 6.000 8.000 7.000 9.000 6.000 6.000 9.000 8.000 3.000 4.000
   > 1.000 6.000 6.000 4.000 2.000 9.000 9.000 9.000 2.000 5.000 8.000 2.000
   > 2.000 3.000 2.000 5.000 8.000 4.000 4.000 8.000 4.000 5.000 3.000 6.000
   > 6.000 9.000 1.000 2.000 4.000 2.000 8.000 9.000 4.000 8.000 3.000 1.000
   > 
   > 1.000 4.000 7.000 6.000 8.000
   > 9.000 6.000 6.000 9.000 8.000
   > 9.000 9.000 9.000 2.000 5.000
   > 4.000 4.000 8.000 4.000 5.000
   > ```
   
   That said, it does slice out from bottom right, not top left. So it is a bit 
confusing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to