#include <bitmap_image.hpp>
|
| response_image (const std::size_t &width, const std::size_t &height, const T null=T(0)) |
|
std::size_t | width () const |
|
std::size_t | height () const |
|
void | set_all (const T &t) |
|
const T & | operator() (const std::size_t &x, const std::size_t &y) const |
|
T & | operator() (const std::size_t &x, const std::size_t &y) |
|
bool | valid (const std::size_t &x, const std::size_t &y) |
|
void | inc_all (const T &v) |
|
void | mul_all (const T &v) |
|
T * | row (const std::size_t &row_index) |
|
const T * | row (const std::size_t &row_index) const |
|
template<typename T>
class response_image< T >
Definition at line 2988 of file bitmap_image.hpp.
◆ response_image()
Definition at line 2992 of file bitmap_image.hpp.
2997 data_.resize(width_ * height_);
std::size_t height() const
std::size_t width() const
◆ height()
◆ inc_all()
Definition at line 3029 of file bitmap_image.hpp.
3031 for (std::size_t i = 0; i < data_.size(); ++i)
◆ mul_all()
Definition at line 3037 of file bitmap_image.hpp.
3039 for (std::size_t i = 0; i < data_.size(); ++i)
◆ operator()() [1/2]
template<typename T>
const T& response_image< T >::operator() |
( |
const std::size_t & |
x, |
|
|
const std::size_t & |
y |
|
) |
| const |
|
inline |
Definition at line 3008 of file bitmap_image.hpp.
3010 if (y >= height_)
return null_;
3011 if (x >= width_ )
return null_;
3013 return data_[width_ * y + x];
◆ operator()() [2/2]
template<typename T>
T& response_image< T >::operator() |
( |
const std::size_t & |
x, |
|
|
const std::size_t & |
y |
|
) |
| |
|
inline |
Definition at line 3016 of file bitmap_image.hpp.
3018 if (y >= height_)
return null_;
3019 if (x >= width_ )
return null_;
3021 return data_[width_ * y + x];
◆ row() [1/2]
Definition at line 3045 of file bitmap_image.hpp.
Referenced by sobel_operator().
3047 if (row_index < height_)
3048 return &data_[width_ * row_index];
3050 return reinterpret_cast<T*
>(0);
◆ row() [2/2]
template<typename T>
const T* response_image< T >::row |
( |
const std::size_t & |
row_index | ) |
const |
|
inline |
Definition at line 3053 of file bitmap_image.hpp.
3055 if (row_index < height_)
3056 return data_[width_ * row_index];
3058 return reinterpret_cast<T*
>(0);
◆ set_all()
◆ valid()
template<typename T>
bool response_image< T >::valid |
( |
const std::size_t & |
x, |
|
|
const std::size_t & |
y |
|
) |
| |
|
inline |
◆ width()
The documentation for this class was generated from the following file: