$search

cScheme Class Reference

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

#include <improc.hpp>

List of all members.

Public Member Functions

void create_long_map ()
 Creates a long map using the shortened map.
 cScheme (double *d, double *r, double *g, double *b, int len)
 Constructor.
 cScheme ()
 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 monochrocv::Matic 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 204 of file improc.hpp.


Constructor & Destructor Documentation

cScheme::cScheme (  ) 

Constructor.

Definition at line 1691 of file improc.cpp.

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

Constructor.

Parameters:
r Pointer to red weightings
g Pointer to green weightings
b Pointer to blue weightings
len Length of all three arrays

Definition at line 1695 of file improc.cpp.

cScheme::~cScheme (  ) 

Destructor.

Definition at line 1704 of file improc.cpp.


Member Function Documentation

void cScheme::create_long_map (  ) 

Creates a long map using the shortened map.

Definition at line 1706 of file improc.cpp.

int cScheme::current_scheme (  ) 

Returns code for current scheme.

Parameters:
output 0 = rainbow, 1 = iron, 2 = jet, 3 = custom

Definition at line 2453 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:
r Pointer to red weightings
g Pointer to green weightings
b Pointer to blue weightings
len Length of all three arrays

Definition at line 2457 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 monochrocv::Matic thermal image.

Parameters:
thermIm Monochrocv::Matic Thermal Image
outputIm Colour output Image
param Integer value dictating safe or unsafe mode: [0] : unsafe mode - includes black and white [1] : safe mode - no black or white (default)
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 2644 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:
thermIm Monochromatic Thermal Image
visualIm Colour or monochromatic Visual Image
outputIm Colour output Image
params Pointer to double values dictating the following parameters: [0] : minimum lightness (default = 0.2) [1] : maximum lightness (default = 0.8)
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:
inputIm Input image
dim_i Width
dim_j Height
void cScheme::load_standard ( int  mapCode,
int  mapParam = 0 
)

Load a standard colour map in as the scheme.

Parameters:
mapCode... 

Definition at line 1783 of file improc.cpp.

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

Recreates lookup table.

Definition at line 1356 of file improc.cpp.


Member Data Documentation

double cScheme::blue[MAP_LENGTH] [protected]

Long of blue-weightings of intensity mappings.

Definition at line 221 of file improc.hpp.

double* cScheme::bx [protected]

Short array of blue-weightings of intensity mappings.

Definition at line 219 of file improc.hpp.

int cScheme::code [protected]

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

Definition at line 225 of file improc.hpp.

double* cScheme::dx [protected]

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

Definition at line 208 of file improc.hpp.

double cScheme::green[MAP_LENGTH] [protected]

Long array of green-weightings of intensity mappings.

Definition at line 217 of file improc.hpp.

double* cScheme::gx [protected]

Short array of green-weightings of intensity mappings.

Definition at line 215 of file improc.hpp.

int cScheme::length [protected]

Number of elements in shortened colour arrays.

Definition at line 223 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 228 of file improc.hpp.

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

Definition at line 229 of file improc.hpp.

double cScheme::red[MAP_LENGTH] [protected]

Long array of red-weightings of intensity mappings.

Definition at line 213 of file improc.hpp.

double* cScheme::rx [protected]

Short array of red-weightings of intensity mappings.

Definition at line 211 of file improc.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


thermalvis
Author(s): Stephen Vidas
autogenerated on Tue Mar 5 12:25:47 2013