boost::gil::histogram
Default histogram class provided by boost::gil.
Synopsis
Declared in <boost/gil/histogram.hpp>
template<typename... T>
class histogram
: public std::unordered_map<std::tuple<T...>, double, detail::hash_tuple<T...>>
Description
The class inherits over the std::unordered_map provided by STL. A complete example/tutorial of how to use the class resides in the docs. Simple calling syntax for a 3D dimensional histogram :
histogram<int, int , int> h;
h(1, 1, 1) = 0;
This is just a starter to what all can be achieved with it, refer to the docs for the full demo.
Base Classes
Name |
Description |
|
A standard container composed of unique keys (containing at most one of each key value) that associates values of another type with the keys. |
Type Aliases
Name |
Description |
@{ Public typedefs. |
|
@{ Iterator‐related typedefs. |
|
Member Functions
Name |
Description |
|
Default constructor |
Returns bin value corresponding to specified tuple |
|
Checks if 2 histograms are equal. Ignores type, and checks if the keys (after type casting) match. |
|
Checks if the histogram class is compatible to be used with the specified tuple type |
|
Returns a key compatible to be used as the histogram key from the input tuple |
|
Returns a histogram compatible key from the input pixel which can be directly used |
|
Return nearest smaller key to specified histogram key |
|
Fills the histogram with the input image view |
|
|
|
Normalize this histogram class |
|
Return the sum count of all bins |
|
Return the minimum key in histogram |
|
Return the maximum key in histogram |
|
Return sorted keys in a vector |
|
Assignment operators |
|
Returns the allocator object used by the %unordered_map. |
|
Returns true if the %unordered_map is empty. |
|
Returns the size of the %unordered_map. |
|
Returns the maximum size of the %unordered_map. |
|
|
|
|
|
Attempts to build and insert a std::pair into the %unordered_map. |
|
Attempts to build and insert a std::pair into the %unordered_map. |
|
Extract a node. |
|
|
|
Attempts to build and insert a std::pair into the %unordered_map. |
|
Inserts a range of elements. |
|
Attempts to insert a std::pair into the %unordered_map. |
|
|
|
Erases all elements in an %unordered_map. Note that this function only erases the elements, and that if the elements themselves are pointers, the pointed‐to memory is not touched in any way. Managing the pointer is the user's responsibility. |
|
Swaps data with another %unordered_map. |
|
Returns the hash functor object with which the %unordered_map was constructed. |
|
Returns the key comparison object with which the %unordered_map was constructed. |
|
Tries to locate an element in an %unordered_map. |
|
Finds the number of elements. |
|
Finds whether an element with the given key exists. |
|
Finds a subsequence matching given key. |
|
Subscript ( |
|
Access to %unordered_map data. |
|
Returns the number of buckets of the %unordered_map. |
|
Returns the maximum number of buckets of the %unordered_map. |
|
Returns the average number of elements per bucket. |
|
|
|
May rehash the %unordered_map. |
|
Prepare the %unordered_map for a specified number of elements. |
Static Member Functions
Name |
Description |
Returns the number of dimensions(axes) the class supports. |
|
Checks if the histogram class is compatible to be used with a GIL image type |
Non-Member Functions
Name |
Description |
Overload for histogram equalization algorithm, takes in a single source histogram and returns the color map used for histogram equalization. |
|
Overload for histogram equalization algorithm, takes in both source histogram & destination histogram and returns the color map used for histogram equalization as well as transforming the destination histogram. |
|
Overload for histogram matching algorithm, takes in source histogram, reference histogram & destination histogram and returns the color map used for histogram matching as well as transforming the destination histogram. |
|
Overload for histogram matching algorithm, takes in a single source histogram & reference histogram and returns the color map used for histogram matching. |
Created with MrDocs