Stainless & IanB, Wow, I can't wait to try this out tomorrow. Sorry for the delay in responding, but I was out for a day and then spent all day today catching up. Your code looks very cool. John
It looks to me as if the bands are slanted from top left to bottom right. Might like to chop clip in half and have zebra bars showing on both left and right to gauge the angle. Perhaps David Horman's plugs will come in handy.
Once the bright bar was located, I was sort of thinking aligning and applying a hand draw mask to the area in question, assuming the bright bar is a fixed geometry.
--------------------- For Sale- Infinity Basslink 2
I was thinking about modifying the RT_YInRangeLocate func for this, if baffle (number of scanlines that must break thresh) exceeds the number of scanlines (width or height of area to examine) then the Baffle for that axis is limited to the number of scanlines on that axis, could do this without changing args. Should allow use here to find the bands. Think I'll do that presently.
Here RT_Stats with RT_YInRangeLocate() mod, not tested at all, but trivial mod. YInRangeLocate.avs also modded. Have to go out now, thought you may like to test out. LINK REMOVED See sig for download. You could set eg width to examine to 1 pixel wide, and height to full height and baffle to eg minimum acceptable band height. think it should work.