The highs and lows of histograms


TV-Bay Magazine
Read ezine online
Histogram displays for video analysis probably followed those found in common computer graphics programs such as Adobe Photoshop. This can be very useful in finding video signal problems that would be difficult or impossible to see with a conventional waveform display.
The histogram is a way of showing statistical results as a bar-chart. The range of possible signal values goes on the x-axis whilst a count of each is presented as the height of each bar. The most frequently occurring values show as peaks. When this technique is applied to live video, all the count heights are automatically scaled to whichever is the highest of the available space. This is done to make the whole display a sensibly scaled size. This normalisation is why a live histogram can appear to dance up and down as the scaling is varied to match the changes in the peak values.
Generating a live histogram involves quite a lot of computation. There is a bank of counters, one for every possible pixel value. As all pixels in each frame are sampled, the value-specific counter is incremented. At the end of each TV frame all the counters are scanned to find the highest and the scaling factor for 100% computed. Each counter is then read out and multiplied by the scaling factor to build the height of each bar. This normalised chart is then drawn by the systems graphics in real time, frame by frame.
The histogram display can be applied to luma (brightness) or to the red, green and blue signal components. These are able to show some common potential faults. A high percentage at either end of the graphs can show blacker-than-black or whiter-than-white arising from gamut errors. In 8 bit video these values are 0-15 for ultra-black and 236–255 for over-white. A small percentage of these excursions caused by overshoots are normal and quite allowable.
If the graph resembles a comb or teeth with fixed spacing gaps between dancing live values then these are quantisation errors. Missing code values will show as contours on areas of gentle graduation like a piece of sky in shot. This can be very distracting particularly with fades. If the ‘teeth’ are regular, they are most likely to have come for transcoding from a lower bit range, contrast resolution or processing. Single fixed gaps can come from hardware faults like troublesome capture cards with missing codes.
If the histogram is used in the edit suite, the overall contrast range can be monitored. If the contrast is expanded because the high-lights are too dim or the blacks look grey, the range can be optimised. The contrast expansion could introduce quantisation gaps although some editing packages can interpolate to avoid this problem. The best policy is to shoot with a full exposure range in the first place. This can be ensured by observing histograms as well as waveform monitoring whilst on-set.
RGB histograms can be used similarly to luma but are not easily applied to colour-matching tasks. The exception is in 3D where both left and right eye histograms in RGB can show the discrepancies between the camera adjustments that need attention. To help comparisons, a line graph of just the peak values can be shown instead of a bar chart. This then allows a readable superimposition of left and right eye data.

Nearly all modern video instruments feature histogram capabilities. They can also be a built-in facility on normal video and viewfinder screens. For instance, the Cel-Soft Reel-Check Solo uses PC software image processing that can show multiple histograms and many other displays including SD/HD/2K and even 4K. Similarly for 3D production or post, the Cel-Scope 3D software suite can superimpose left and right eye luma or RGB histograms for real-time comparison and matching as line graphs or bar-charts.



Robin Palmer is Managing Director of Cel-Soft and is habitually involved with solutions for 3D & TV technology

Tags: iss071 | cel-soft | histogram | cel-scope | rell-check solo | N/A
Contributing Author N/A

Read this article in the tv-bay digital magazine
Article Copyright tv-bay limited. All trademarks recognised.
Reproduction of the content strictly prohibited without written consent.

Articles
Trade shows and their role in the wired world
Richard Baker Historically trade shows afforded an opportunity to collect the latest brochures relevant to the visitor's chosen industry or career path. Today there seems little reason to store data of any kind, let alone paper brochures, when information is so easily accessible online. Brochure back-packing at exhibitions has become a rare sight, rarer still since the security clampdown on visitor luggage at exhibitions. Today's efficient show delegate need only carry a mobile phone and, in deference to tradition, a bundle of business cards. The phone doubles as a snapshot camera, video camera, dictaphone, email reader, internet browser, Skype communicator, and so on.
Tags: iss133 | finepoint | ibc | nab | kitplus show | bve | Richard Baker
Contributing Author Richard Baker Click to read or download PDF
The Biggest Toy Shop in the World
Emma Morrison When Nigel Woodford started his career at BBC Wood Norton in 1962, television was black and white and BBC Two had not yet been launched. In 2018 Nigel will retire, and Richmond Film Services, the pro-audio equipment rental company set up by Nigel in 1973, can count numerous contributions to iconic moments in British cultural, sporting and film history over this time.
Tags: iss133 | richmond film services | audio rental | auction | liquidity | go-dove | Emma Morrison
Contributing Author Emma Morrison Click to read or download PDF
What is next in OTT
Mary Kay Evans In the past year alone, we’ve seen a substantial increase in the amount of OTT content that’s being streamed. In the first quarter of 2018, there’s been a 114 percent year-over-year growth in streaming video hours, and those numbers are only expected to rise. With OTT revenue predicted to reach $16.6B in 2018, a 40% gain over last year, there’s no question that OTT is booming, and that there’s never been a more critical time to pay attention to the space.
Tags: iss133 | ott | verizon | cisco | Mary Kay Evans
Contributing Author Mary Kay Evans Click to read or download PDF
Ride along on the Tour de Tech at IBC
Lorna Garrett Finding your way through the halls and aisles of the massive IBC can feel a bit like attempting to complete all 21 stages of the Tour de France — but in far fewer days. But have no fear; your team at Garland is all geared up and ready to show you the best on show at this year's exhibition.
Tags: iss133 | garland | liveu | lu600 | media excel | teracue | wisi | broadcast wireless systems | bws | artel | ibc | Lorna Garrett
Contributing Author Lorna Garrett Click to read or download PDF
The Pace of Change
Dick Hobbs - new

The youngest human to stand on the moon (so far) was Charles Moss, the lunar module pilot of Apollo 16. Charlie had a wonderful claim: his father witnessed the Wright Brothers’ first flight at Kitty Hawk, and lived to see his son on the moon.

Does anything capture the speed of technological advance better than that? The whole of the history of powered flight in one lifetime.

Tags: iss133 | state of the nation | st2110 | st2110-10 | Dick Hobbs - new
Contributing Author Dick Hobbs - new Click to read or download PDF