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 |
Assignment operators |
|
Access to %unordered_map data. |
|
|
|
Returns the number of buckets of 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. |
|
Finds the number of elements. |
|
Attempts to build and insert a std::pair into the %unordered_map. |
|
Attempts to build and insert a std::pair into the %unordered_map. |
|
Returns true if the %unordered_map is empty. |
|
|
|
Finds a subsequence matching given key. |
|
Checks if 2 histograms are equal. Ignores type, and checks if the keys (after type casting) match. |
|
|
|
Extract a node. |
|
Fills the histogram with the input image view |
|
Tries to locate an element in an %unordered_map. |
|
Returns the allocator object used by the %unordered_map. |
|
Returns the hash functor object with which the %unordered_map was constructed. |
|
|
|
Attempts to insert a std::pair into the %unordered_map. |
|
Checks if the histogram class is compatible to be used with the specified tuple type |
|
Returns the key comparison object with which the %unordered_map was constructed. |
|
Returns a histogram compatible key from the input pixel which can be directly used |
|
Returns a key compatible to be used as the histogram key from the input tuple |
|
Returns the average number of elements per bucket. |
|
Returns the maximum number of buckets of the %unordered_map. |
|
Return the maximum key in histogram |
|
|
|
Returns the maximum size of the %unordered_map. |
|
Return the minimum key in histogram |
|
Return nearest smaller key to specified histogram key |
|
Normalize this histogram class |
|
Returns bin value corresponding to specified tuple |
|
Subscript ( |
|
May rehash the %unordered_map. |
|
Prepare the %unordered_map for a specified number of elements. |
|
Returns the size of the %unordered_map. |
|
Return sorted keys in a vector |
|
|
|
Return the sum count of all bins |
|
Swaps data with another %unordered_map. |
|
Attempts to build and insert a std::pair into the %unordered_map. |
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