For configuring and applying false-colormapping or modality-fusion schemes. More...
#include <improc.hpp>

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. | |
For configuring and applying false-colormapping or modality-fusion schemes.
Definition at line 220 of file improc.hpp.
| cScheme::cScheme | ( | ) |
Constructor.
Definition at line 1847 of file improc.cpp.
| cScheme::cScheme | ( | double * | d, |
| double * | r, | ||
| double * | g, | ||
| double * | b, | ||
| int | len | ||
| ) |
Constructor.
| r | Pointer to red weightings |
| g | Pointer to green weightings |
| b | Pointer to blue weightings |
| len | Length of all three arrays |
Definition at line 1851 of file improc.cpp.
Destructor.
Definition at line 1860 of file improc.cpp.
| void cScheme::create_long_map | ( | ) |
Creates a long map using the shortened map.
Definition at line 1862 of file improc.cpp.
| int cScheme::current_scheme | ( | ) |
Returns code for current scheme.
| output | 0 = 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.
| r | Pointer to red weightings |
| g | Pointer to green weightings |
| b | Pointer to blue weightings |
| len | Length 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.
| 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) |
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.
| 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) |
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).
| inputIm | Input image |
| dim_i | Width |
| dim_j | Height |
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.
| 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.
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.