plastimatch
Loading...
Searching...
No Matches
pwlut.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _pwlut_h_
5#define _pwlut_h_
6
7#include "plmutil_config.h"
8#include <list>
9#include <utility>
10#include "itk_image_type.h"
11#include "float_pair_list.h"
12
18public:
19 Pwlut ();
20protected:
24 Float_pair_list::const_iterator ait_start;
25 Float_pair_list::const_iterator ait_end;
26public:
29
30 void set_lut (const std::string& pwlut_string);
32 void set_lut (const Float_pair_list& pwlut_fpl);
34 float lookup (float vin) const;
36};
37
38#endif
The Pwlut class implements a lookup table with piecewise linear segments.
Definition pwlut.h:17
float right_slope
Definition pwlut.h:23
Float_pair_list::const_iterator ait_end
Definition pwlut.h:25
Float_pair_list::const_iterator ait_start
Definition pwlut.h:24
float left_slope
Definition pwlut.h:22
Float_pair_list fpl
Definition pwlut.h:21
std::list< std::pair< float, float > > Float_pair_list
Definition float_pair_list.h:12
#define PLMBASE_API
Definition plmbase_config.h:19