Quote:
Originally Posted by um3k
Thanks, guys. I found a workaround on my own, simply resizing to the minimum (8 pixels), then using HorizontalReduceBy2 three times to get it down to 1 pixel. I'm sure it's nowhere near exact, but the results were satisfactory for my purposes.
|
Actually, the minimum for BilinearResize is 2 pixels, so you could have got away with a single HorizontalReduceBy2. What you have certainly isn't a mathematical average (as pixels nearer the centre of the frame will have more weight), but if you're just looking for some way to blur all pixels horizontally into one, that's fine.
BTW If the idea was to create a single frame result, the Trim(0,1) at the end of your code should be Trim(0,
-1). (The second frame consists of repeated strips from the last frame of the source.)