Filter to apply lookup tables to samples in image. More...
#include <spatmod/imagefilterlookup.h>

Public Member Functions | |
| FILTER_LOOKUP (STAGE *pPreviousStage, bool TakeOwnership) | |
| virtual | ~FILTER_LOOKUP () |
| const PIXEL * | GetPixelAboveMax () const |
| const PIXEL * | GetPixelBelowMin () const |
| const SAMPLETABLE & | GetSampleTable (UINT16 SampleNum) const |
| ERRVALUE | SetContrastParm (const CONTRASTPARM &ContrastParm, UINT16 SampleNum=0) |
| ERRVALUE | SetPixelAboveMaximum (const PIXEL &PixelAboveMax) |
| ERRVALUE | SetPixelBelowMinimum (const PIXEL &PixelBelowMin) |
| ERRVALUE | SetSampleTable (UINT16 SampleNum, const SAMPLETABLE &SampleTable, double MinValue=0, double Interval=1) |
Filter to apply lookup tables to samples in image.
| SPATMOD::IMAGE::FILTER_LOOKUP::FILTER_LOOKUP | ( | STAGE * | pPreviousStage, | |
| bool | TakeOwnership | |||
| ) |
Constructor.
| pPreviousStage | Pointer to previous stage | |
| TakeOwnership | Filter takes ownership of previous stage and will delete when needed |
| virtual SPATMOD::IMAGE::FILTER_LOOKUP::~FILTER_LOOKUP | ( | ) | [virtual] |
Destructor.
| const PIXEL* SPATMOD::IMAGE::FILTER_LOOKUP::GetPixelAboveMax | ( | ) | const [inline] |
Get pixel value for samples above maximum in table.
| const PIXEL* SPATMOD::IMAGE::FILTER_LOOKUP::GetPixelBelowMin | ( | ) | const [inline] |
Get pixel value for samples below minimum in table.
| const SAMPLETABLE& SPATMOD::IMAGE::FILTER_LOOKUP::GetSampleTable | ( | UINT16 | SampleNum | ) | const |
Get sample table.
| SampleNum | Sample index |
| ERRVALUE SPATMOD::IMAGE::FILTER_LOOKUP::SetContrastParm | ( | const CONTRASTPARM & | ContrastParm, | |
| UINT16 | SampleNum = 0 | |||
| ) |
Set all table and pixel values from CONTRASTPARM.
Resulting sample DATATYPE will be UINT8.
| ContrastParm | Contrast parameters | |
| SampleNum | Sample number |
Set pixel value to use for samples above maximum.
Pixel properties must match image properties. If not specified will use table maximum.
| PixelAboveMax | Pixel value to use |
Set pixel value to use for samples below minimum.
Pixel properties must match image properties. If not specified will use table minimum.
| PixelBelowMin | Pixel value to use |
| ERRVALUE SPATMOD::IMAGE::FILTER_LOOKUP::SetSampleTable | ( | UINT16 | SampleNum, | |
| const SAMPLETABLE & | SampleTable, | |||
| double | MinValue = 0, |
|||
| double | Interval = 1 | |||
| ) |
Set sample table.
Any component sample for which a table is not provided will be passed through filter unchanged.
| SampleNum | Sample index | |
| SampleTable | Sample table | |
| MinValue | Minimum data value, corresponds to index 0 in sample table | |
| Interval | Interval between data values for computing table index |
1.6.1