Histogram - reduction using Expr instead of Var #6332
-
I was playing a bit with the histogram implementation in Halide and found this problem... Simplified code snippet:
I am getting: I tried allocating an intermediate buffer, convert the input image to the luminosity (1 channel) buffer, and pass it as 'y' coord to histogram, but that threw an exception as well. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
y doesn't exist on the left-hand-side of your update definition for waveform, so I'm not sure which pixel you're trying to load. Perhaps you mean the following: ?
|
Beta Was this translation helpful? Give feedback.
-
Oh, makes sense! Thanks! |
Beta Was this translation helpful? Give feedback.
y doesn't exist on the left-hand-side of your update definition for waveform, so I'm not sure which pixel you're trying to load. Perhaps you mean the following: ?