1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef IGL_JET_H
- #define IGL_JET_H
- #include "igl_inline.h"
- //#ifndef IGL_NO_EIGEN
- //# include <Eigen/Dense>
- //#endif
- namespace igl
- {
- // JET like MATLAB's jet
- //
- // Inputs:
- // m number of colors
- // Outputs:
- // J m by list of RGB colors between 0 and 1
- //
- //#ifndef IGL_NO_EIGEN
- // void jet(const int m, Eigen::MatrixXd & J);
- //#endif
- // Wrapper for directly computing [r,g,b] values for a given factor f between
- // 0 and 1
- //
- // Inputs:
- // f factor determining color value as if 0 was min and 1 was max
- // Outputs:
- // r red value
- // g green value
- // b blue value
- template <typename T>
- void jet(const T f, T * rgb);
- template <typename T>
- void jet(const T f, T & r, T & g, T & b);
- };
- #ifdef IGL_HEADER_ONLY
- # include "jet.cpp"
- #endif
- #endif
|