Overview

This document introduces you to Histogram.

Purpose

Histogram provides the functionality needed to work with histogram data in a specified format for an image (for example, luminance based histogram or average colour value histogram).

The data generated can be application rendered. In this case the application gets histogram frequencies and renders them onto a bitmap. The data can also be camera rendered, meaning it is displayed directly in the viewfinder. In the camera rendered case, the client can specify properties of the histogram such as size, colour and position.

Histogram Library Details

The DLL that provides the functionality and the library to which your code must link is identified below.

DLL LIB Short Description

ecamhistogram.dll

ecamhistogram.lib

These files are used for implementing the Histogram APIs.

Architectural Relationship

Histogram is part of the camera component.

Description

Histogram allows only one type per object. To allow multiple types of histogram for a given imaging mode, multiple histogram objects need to be created for that imaging mode. Histogram objects are created separately for still images, video, viewfinders and snapshots. Call-backs associated with still images, video and viewfinders notify clients about the generation of histogram data. For client histograms, the data is available in buffers.

MhistogramV2Buffer interface provides only one buffer at a time. Unless new histogram data is available through MhistogramV2Buffer, the same histogram data is used for the image modes.

Key Histogram API Classes

The key classes that make up the Histogram are as follows:

Using Histogram API

Clients can use the histogram to:

  • Get histogram data of various types.

  • Retrieve and modify the properties of a direct histogram including the background color, histogram color, its size, position and type.

See also

Overview of Camera Framework