#include <threshold.hh>
Inheritance diagram for oln::level::threshold< Input, Output, Exact >:
Public Member Functions | |
threshold (const Input &threshold, const Output &min=ntg::type_traits< Output >::min(), const Output &max=ntg::type_traits< Output >::max()) | |
Output | operator() (const Input &v) const |
Static Public Member Functions | |
std::string | name () |
#include <oln/basics2d.hh> #include <oln/level/threshold.hh> #include <ntg/all.hh> using namespace ntg; int main() { oln::image2d<int_u8> in = oln::load(IMG_IN "lena256.pgm"); int_u8 th = 127; rgb_8 low = rgb_8(100, 0, 0); rgb_8 height = rgb_8(0, 200, 255); oln::image2d<rgb_8> out = apply(oln::level::threshold<int_u8, rgb_8 >(th, low, height), in); save(out, IMG_OUT "oln_level_threshold.ppm"); }
Definition at line 65 of file threshold.hh.
|
Definition at line 74 of file threshold.hh.
00076 : 00077 m_threshold(threshold), m_min(min), m_max(max) 00078 {} |