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
Switching to Internet Based Distribution
Chris Clark

"An IP status check for the broadcast industry", "Resistance is futile", "IP points the way forward for the broadcast industry"...

Yes, we've read the headlines too. But rather than force you into submission, scare you, or leave you feeling like you have no other choice, we want to give you the information that helps you to make a sensible decision about Internet-based distribution.

So what’s stopping you from making the switch right now?

Tags: iss135 | ip | internet | distribution | cerberus | Chris Clark
Contributing Author Chris Clark Click to read or download PDF
21st Century Technology for 20th Century Content
James Hall A big challenge facing owners of legacy content is rationalising and archiving their tape and film-based media in cost effective and efficient ways, whilst also adding value. Normally the result of this is to find a low cost means of digitising the content – usually leaving them with a bunch of assets on HDD. But then what? How can content owners have their cake and eat it?
Tags: iss135 | legacy | digitising | digitizing | archive | James Hall
Contributing Author James Hall Click to read or download PDF
Future proofing post production storage
Josh Goldenhar Advancements in NVMe (Non-Volatile Memory Express), the storage protocol designed for flash, are revolutionising data storage. According to G2M Research, the NVMe market will grow to $60 billion by 2021, with 70 percent of all-flash arrays being based on the protocol by 2020. NVMe, acting like steroids for flash-based storage infrastructures, dynamically and dramatically accelerates data delivery.
Tags: iss135 | nvme | sas | sata | it | storage | post production | Josh Goldenhar
Contributing Author Josh Goldenhar Click to read or download PDF
Your two week editing future
Alex Macleod

So here we are - January again! Usually a good time to reflect on the year just gone by, and a good time to look forward to the coming months as the new year begins.

When I was reflecting on my 2018, and when thinking about what to write for my first article for Kit Plus - I kept coming back to one theme - organisation.

Tags: iss135 | editing | mediacity training | premiere pro | dit | Alex Macleod
Contributing Author Alex Macleod Click to read or download PDF
Test, Measurement and Standards
Alan Wheable The Alliance for IP Media Solutions (AIMS), is a non-profit trade alliance that fosters the adoption of one set of common, ubiquitous, standards-based protocols for interoperability over IP in the media and entertainment, and professional audio/video industries.
Tags: iss135 | omnitek | aims | SNMP | hdr | ai | Alan Wheable
Contributing Author Alan Wheable Click to read or download PDF