|
degate 0.1.1
|
#include <ImageHistogram.h>

Public Member Functions | |
| HueImageHistogram () | |
| template<class ImageType > | |
| void | add_area (std::tr1::shared_ptr< ImageType > img, BoundingBox const &bb) |
| virtual double | get_for_rgb (rgba_pixel_t pixel) const |
Definition at line 122 of file ImageHistogram.h.
| degate::HueImageHistogram::HueImageHistogram | ( | ) | [inline] |
Definition at line 126 of file ImageHistogram.h.
: ImageHistogram<double, double>(0, 360, 1) {}
| void degate::HueImageHistogram::add_area | ( | std::tr1::shared_ptr< ImageType > | img, |
| BoundingBox const & | bb | ||
| ) | [inline] |
Definition at line 129 of file ImageHistogram.h.
References degate::ImageHistogram< double, double >::add(), degate::ImageHistogram< double, double >::check_bounding_box(), degate::BoundingBox::get_max_x(), degate::BoundingBox::get_max_y(), degate::BoundingBox::get_min_x(), degate::BoundingBox::get_min_y(), and degate::rgba_to_hue().
{
assert_is_multi_channel_image<ImageType>();
check_bounding_box(bb, img);
for(unsigned int y = (unsigned int)bb.get_min_y(); y <= (unsigned int)bb.get_max_y(); y++)
for(unsigned int x = (unsigned int)bb.get_min_x(); x <= (unsigned int)bb.get_max_x(); x++)
add(rgba_to_hue(img->get_pixel(x, y)));
}

| virtual double degate::HueImageHistogram::get_for_rgb | ( | rgba_pixel_t | pixel | ) | const [inline, virtual] |
Implements degate::ImageHistogram< double, double >.
Definition at line 140 of file ImageHistogram.h.
References degate::rgba_to_hue().
{
return get(rgba_to_hue(pixel));
}

1.7.4