-
I'm as confused as the title of my question. So I try to explain what I want to do. :) Say I have an IMAGE buffer grayscale X,Y dimensioned. I also have a PATTERN buffer Z,3 dimensioned. I want for per each pixel of the IMAGE do a loop over the PATTERN buffer. Then carry on to the next pixel in the IMAGE do the loop with the 3 values from the PATTERN buffer Z times for the whole PATTERN buffer , etc... I'm stuck in the 'feed forward' way of thinking and for now I don't see a way to achieve this.
more concrete
Hopefully it make sense to somebody with a hint. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You want an RDom and an update definition for this, something like:
The .in() call is optional, but it gets a slightly better schedule for this sort of code. It puts the base case inside the loop over x, y. |
Beta Was this translation helpful? Give feedback.
You want an RDom and an update definition for this, something like:
The .in() call is optional, but it gets a slightly better schedule for this sort of code. It puts the base case inside the loop over x, y.