degate  0.1.2
Public Member Functions
degate::GreenChannelImageHistogram Class Reference

#include <ImageHistogram.h>

Inheritance diagram for degate::GreenChannelImageHistogram:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 GreenChannelImageHistogram ()
template<class ImageType >
void add_area (std::shared_ptr< ImageType > img, BoundingBox const &bb)
virtual double get_for_rgb (rgba_pixel_t pixel) const

Detailed Description

Definition at line 223 of file ImageHistogram.h.


Constructor & Destructor Documentation

Definition at line 227 of file ImageHistogram.h.

: ImageHistogram<double, double>(0, 255, 1) {}

Member Function Documentation

template<class ImageType >
void degate::GreenChannelImageHistogram::add_area ( std::shared_ptr< ImageType >  img,
BoundingBox const &  bb 
) [inline]

Definition at line 230 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 MASK_G.

                                                                       {

      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(MASK_G(img->get_pixel(x, y)));
    }

Here is the call graph for this function:

virtual double degate::GreenChannelImageHistogram::get_for_rgb ( rgba_pixel_t  pixel) const [inline, virtual]

Implements degate::ImageHistogram< double, double >.

Definition at line 240 of file ImageHistogram.h.

References MASK_G.

                                                         {
      return get(MASK_G(pixel));
    }

The documentation for this class was generated from the following file: