Public Member Functions | Protected Attributes
cScheme Class Reference

For configuring and applying false-colormapping or modality-fusion schemes. More...

#include <improc.hpp>

Inheritance diagram for cScheme:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void create_long_map ()
 Creates a long map using the shortened map.
 cScheme ()
 Constructor.
 cScheme (double *d, double *r, double *g, double *b, int len)
 Constructor.
int current_scheme ()
 Returns code for current scheme.
void customize (double *d, double *r, double *g, double *b, int len)
 Create and apply a new colour map as the scheme.
void falsify_image (const cv::Mat &thermIm, cv::Mat &outputIm, int param=1)
 Create a false colour version of a monochromatic thermal image.
void forge_image (cv::Mat &thermIm, cv::Mat &visualIm, cv::Mat &outputIm, double *params=NULL, double thresh=0.05)
 Combines RGB and thermal image using some other scheme.
void fuse_image (cv::Mat &thermIm, cv::Mat &visualIm, cv::Mat &outputIm, double *params=NULL)
 Create a false colour combination of a colour or monochrome visual image and a monochrome thermal image.
void image_resize (cv::Mat &inputIm, int dim_i, int dim_j)
 Resizes the given image, preserving the underlying data (to some extent).
void load_standard (int mapCode, int mapParam=0)
 Load a standard colour map in as the scheme.
void setupLookupTable (unsigned int depth=65536)
 Recreates lookup table.
 ~cScheme ()
 Destructor.

Protected Attributes

double blue [MAP_LENGTH]
 Long of blue-weightings of intensity mappings.
double * bx
 Short array of blue-weightings of intensity mappings.
int code
 Code identifying which map is being used [see load_standard() function].
double * dx
 Short array of the intensities corresponding to the color mappings (rx, gx, bx)
double green [MAP_LENGTH]
 Long array of green-weightings of intensity mappings.
double * gx
 Short array of green-weightings of intensity mappings.
int length
 Number of elements in shortened colour arrays.
unsigned char lookupTable_1 [256][3]
 Lookup table which shows what colour intensities correspond to what raw intensities.
unsigned short lookupTable_2 [65536][3]
double red [MAP_LENGTH]
 Long array of red-weightings of intensity mappings.
double * rx
 Short array of red-weightings of intensity mappings.

Detailed Description

For configuring and applying false-colormapping or modality-fusion schemes.

Definition at line 220 of file improc.hpp.


Constructor & Destructor Documentation

Constructor.

Definition at line 1847 of file improc.cpp.

cScheme::cScheme ( double *  d,
double *  r,
double *  g,
double *  b,
int  len 
)

Constructor.

Parameters:
rPointer to red weightings
gPointer to green weightings
bPointer to blue weightings
lenLength of all three arrays

Definition at line 1851 of file improc.cpp.

Destructor.

Definition at line 1860 of file improc.cpp.


Member Function Documentation

Creates a long map using the shortened map.

Definition at line 1862 of file improc.cpp.

Returns code for current scheme.

Parameters:
output0 = rainbow, 1 = iron, 2 = jet, 3 = custom

Definition at line 2648 of file improc.cpp.

void cScheme::customize ( double *  d,
double *  r,
double *  g,
double *  b,
int  len 
)

Create and apply a new colour map as the scheme.

Parameters:
rPointer to red weightings
gPointer to green weightings
bPointer to blue weightings
lenLength of all three arrays

Definition at line 2652 of file improc.cpp.

void cScheme::falsify_image ( const cv::Mat &  thermIm,
cv::Mat &  outputIm,
int  param = 1 
)

Create a false colour version of a monochromatic thermal image.

Parameters:
thermImMonochrocv::Matic Thermal Image
outputImColour output Image
paramInteger value dictating safe or unsafe mode: [0] : unsafe mode - includes black and white [1] : safe mode - no black or white (default)

Definition at line 2661 of file improc.cpp.

void cScheme::forge_image ( cv::Mat &  thermIm,
cv::Mat &  visualIm,
cv::Mat &  outputIm,
double *  params = NULL,
double  thresh = 0.05 
)

Combines RGB and thermal image using some other scheme.

Definition at line 2839 of file improc.cpp.

void cScheme::fuse_image ( cv::Mat &  thermIm,
cv::Mat &  visualIm,
cv::Mat &  outputIm,
double *  params = NULL 
)

Create a false colour combination of a colour or monochrome visual image and a monochrome thermal image.

Parameters:
thermImMonochromatic Thermal Image
visualImColour or monochromatic Visual Image
outputImColour output Image
paramsPointer to double values dictating the following parameters: [0] : minimum lightness (default = 0.2) [1] : maximum lightness (default = 0.8)

Definition at line 2948 of file improc.cpp.

void cScheme::image_resize ( cv::Mat &  inputIm,
int  dim_i,
int  dim_j 
)

Resizes the given image, preserving the underlying data (to some extent).

Parameters:
inputImInput image
dim_iWidth
dim_jHeight

Definition at line 2813 of file improc.cpp.

void cScheme::load_standard ( int  mapCode,
int  mapParam = 0 
)

Load a standard colour map in as the scheme.

Parameters:
mapCode...

Definition at line 1939 of file improc.cpp.

void cScheme::setupLookupTable ( unsigned int  depth = 65536)

Recreates lookup table.

Definition at line 1492 of file improc.cpp.


Member Data Documentation

double cScheme::blue[MAP_LENGTH] [protected]

Long of blue-weightings of intensity mappings.

Definition at line 237 of file improc.hpp.

double* cScheme::bx [protected]

Short array of blue-weightings of intensity mappings.

Definition at line 235 of file improc.hpp.

int cScheme::code [protected]

Code identifying which map is being used [see load_standard() function].

Definition at line 241 of file improc.hpp.

double* cScheme::dx [protected]

Short array of the intensities corresponding to the color mappings (rx, gx, bx)

Definition at line 224 of file improc.hpp.

double cScheme::green[MAP_LENGTH] [protected]

Long array of green-weightings of intensity mappings.

Definition at line 233 of file improc.hpp.

double* cScheme::gx [protected]

Short array of green-weightings of intensity mappings.

Definition at line 231 of file improc.hpp.

int cScheme::length [protected]

Number of elements in shortened colour arrays.

Definition at line 239 of file improc.hpp.

unsigned char cScheme::lookupTable_1[256][3] [protected]

Lookup table which shows what colour intensities correspond to what raw intensities.

Definition at line 244 of file improc.hpp.

unsigned short cScheme::lookupTable_2[65536][3] [protected]

Definition at line 245 of file improc.hpp.

double cScheme::red[MAP_LENGTH] [protected]

Long array of red-weightings of intensity mappings.

Definition at line 229 of file improc.hpp.

double* cScheme::rx [protected]

Short array of red-weightings of intensity mappings.

Definition at line 227 of file improc.hpp.


The documentation for this class was generated from the following files:


thermalvis
Author(s): Stephen Vidas
autogenerated on Sun Jan 5 2014 11:38:45