libigl v2.5.0
Loading...
Searching...
No Matches
parula.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_PARULA_H
9#define IGL_PARULA_H
10#include "igl_inline.h"
11//#ifndef IGL_NO_EIGEN
12# include <Eigen/Dense>
13//#endif
14namespace igl
15{
23 template <typename T>
24 IGL_INLINE void parula(const T f, T * rgb);
26 template <typename T>
27 IGL_INLINE void parula(const T f, T & r, T & g, T & b);
32 template <typename DerivedZ, typename DerivedC>
34 const Eigen::MatrixBase<DerivedZ> & Z,
35 const bool normalize,
36 Eigen::PlainObjectBase<DerivedC> & C);
40 template <typename DerivedZ, typename DerivedC>
42 const Eigen::MatrixBase<DerivedZ> & Z,
43 const double min_Z,
44 const double max_Z,
45 Eigen::PlainObjectBase<DerivedC> & C);
46};
47
48#ifndef IGL_STATIC_LIBRARY
49# include "parula.cpp"
50#endif
51
52#endif
53
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void parula(const T f, T *rgb)
Parula colormap like MATLAB's parula.