Skip to Content
Design for Embedded Image Processing on FPGAs, 2nd Edition
book

Design for Embedded Image Processing on FPGAs, 2nd Edition

by Donald G. Bailey
August 2023
Intermediate to advanced
496 pages
23h 47m
English
Wiley
Content preview from Design for Embedded Image Processing on FPGAs, 2nd Edition

8Histogram Operations

As indicated in Chapter 7, the parameters for many point operations can be derived from the histogram of pixel values of the image. This chapter is divided into two parts: the first considers greyscale histograms and some of their applications, and the second extends this to multidimensional histograms.

8.1 Greyscale Histogram

The histogram of a greyscale image, as shown in Figure 8.1, gives the count of the number of pixels in an image as a function of pixel value:

Closely related is the cumulative histogram, which counts the number of pixels less than or equal to a pixel value:

(8.2)upper S 0 upper H left-bracket i right-bracket equals sigma-summation Underscript x comma y Endscripts StartLayout Enlarged left-brace 1st Row 1st Column 1 comma 2nd Column upper I left-bracket x comma y right-bracket less-than-or-equal-to i 2nd Row 1st Column 0 comma 2nd Column otherwise EndLayout equals sigma-summation Underscript n equals 0 Overscript i Endscripts upper H left-bracket n right-bracket period

The cumulative histogram is always monotonically increasing as is shown in Figure 8.1, with the total number of pixels in the image, upper N Subscript upper P Baseline equals upper S 0 upper H left-bracket 2 Superscript upper B Baseline minus 1 right-bracket.

There are two main steps associated with using histograms for image processing. The first step is to build the histogram, and the second is to extract data from the histogram and use it for processing the image. Building the histogram will be described in Section 8.1.1, whereas the applications are discussed in Sections 8.1.2, 8.1.3, 8.1.4, 8.1.5, 8.1.6.

8.1.1 Building the Histogram

To build the histogram, it is necessary to accumulate ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Design for Embedded Image Processing on FPGAs

Design for Embedded Image Processing on FPGAs

Donald G. Bailey
Digital Image Processing with C++

Digital Image Processing with C++

David Tschumperle, Christophe Tilmant, Vincent Barra

Publisher Resources

ISBN: 9781119819790Purchase Link