py_hsv_to_rgb.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2017 Sebastian Koch <s.koch@tu-berlin.de> and Daniele Panozzo <daniele.panozzo@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. // COMPLETE BINDINGS ========================
  9. m.def("hsv_to_rgb", []
  10. (
  11. const Eigen::MatrixXd& H,
  12. Eigen::MatrixXd& R
  13. )
  14. {
  15. return igl::hsv_to_rgb(H, R);
  16. }, __doc_igl_hsv_to_rgb,
  17. py::arg("H"), py::arg("R"));
  18. // INCOMPLETE BINDINGS ========================
  19. //m.def("hsv_to_rgb", []
  20. //(
  21. // T * hsv,
  22. // T * rgb
  23. //)
  24. //{
  25. // return igl::hsv_to_rgb(hsv, rgb);
  26. //}, __doc_igl_hsv_to_rgb,
  27. //py::arg("hsv"), py::arg("rgb"));
  28. //m.def("hsv_to_rgb", []
  29. //(
  30. // T & h,
  31. // T & s,
  32. // T & v,
  33. // T & r,
  34. // T & g,
  35. // T & b
  36. //)
  37. //{
  38. // return igl::hsv_to_rgb(h, s, v, r, g, b);
  39. //}, __doc_igl_hsv_to_rgb,
  40. //py::arg("h"), py::arg("s"), py::arg("v"), py::arg("r"), py::arg("g"), py::arg("b"));