KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
i_matrix.h
Go to the documentation of this file.
1 
6 /*
7  * $Id: i_matrix.h 16764 2014-05-09 23:17:12Z ksimek $
8  */
9 
10 #ifndef I_CPP_I_MATRIX_H_IVI_LAB_INCLUDED
11 #define I_CPP_I_MATRIX_H_IVI_LAB_INCLUDED
12 
13 #include <i/i_matrix.h>
14 #include <m_cpp/m_matrix.h>
15 #include <i_cpp/i_image.h>
16 #include <i_cpp/i_colormap.h>
17 
18 namespace kjb {
19 
26 
31 Image matrix_to_color_image(const kjb::Matrix& m, const kjb::Colormap& map = "jet");
32 
36 inline Image imagesc(const kjb::Matrix& data, const kjb::Colormap& map = "jet")
37 {
38  return matrix_to_color_image(data, map);
39 }
40 
42 
43 }
44 
45 #endif
46 
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
Image matrix_to_max_contrast_8bit_bw_image(const kjb::Matrix &m)
convert a matrix to a black-and-white image, with enhanced contrast.
Definition: i_matrix.cpp:25
Image imagesc(const kjb::Matrix &data, const kjb::Colormap &map="jet")
Ported version of Matlab's "imagesc()" function; alias of matrix_to_color_image.
Definition: i_matrix.h:36
Image matrix_to_color_image(const kjb::Matrix &m, const kjb::Colormap &map)
Converts a matrix to a high-contrast color image, mapping values to colors using a kjb::Colormap...
Definition: i_matrix.cpp:50
Definition: i_colormap.h:42
This class implements matrices, in the linear-algebra sense, with real-valued elements.
Definition: m_matrix.h:94
Code for a wrapper class around the C struct KJB_Image.
for m
Definition: APPgetLargeConnectedEdges.m:64
Wrapped version of the C struct KJB_image.
Definition: i_image.h:76