oln::convert::stretch< Output, Exact > Struct Template Reference

#include <stretch.hh>

Inheritance diagram for oln::convert::stretch< Output, Exact >:

Inheritance graph
[legend]
Collaboration diagram for oln::convert::stretch< Output, Exact >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

template<class Input> Output doit (const Input &v) const

Static Public Member Functions

std::string name ()

Detailed Description

template<class Output, class Exact = mlc::final>
struct oln::convert::stretch< Output, Exact >

Functor to stretch a value from a range Input to a range Output.

See also:
stretch_balance
#include <oln/basics2d.hh> #include <oln/convert/stretch.hh> #include <ntg/all.hh> #include <iostream> int main() { oln::image2d<ntg::int_u8> lena = oln::load(IMG_IN "lena256.pgm"); oln::io::save(apply(oln::convert::stretch<ntg::int_u<3> >(), lena), IMG_OUT "oln_convert_stretch.pgm"); }
lena256_pgm.png
=>
oln_convert_stretch.png

Definition at line 71 of file stretch.hh.


The documentation for this struct was generated from the following file:
Generated on Thu Apr 15 20:15:30 2004 for Olena by doxygen 1.3.6-20040222