#include "rgb_to_hsv.h" template void igl::rgb_to_hsv(const R * rgb, H * hsv) { // http://en.literateprograms.org/RGB_to_HSV_color_space_conversion_%28C%29 R rgb_max = 0.0; R rgb_min = 1.0; rgb_max = (rgb[0]>rgb_max?rgb[0]:rgb_max); rgb_max = (rgb[1]>rgb_max?rgb[1]:rgb_max); rgb_max = (rgb[2]>rgb_max?rgb[2]:rgb_max); rgb_min = (rgb[0]rgb_max?rgb_n[0]:rgb_max); rgb_max = (rgb_n[1]>rgb_max?rgb_n[1]:rgb_max); rgb_max = (rgb_n[2]>rgb_max?rgb_n[2]:rgb_max); rgb_min = 1; rgb_min = (rgb_n[0]rgb_max?rgb_n[0]:rgb_max); rgb_max = (rgb_n[1]>rgb_max?rgb_n[1]:rgb_max); rgb_max = (rgb_n[2]>rgb_max?rgb_n[2]:rgb_max); rgb_min = 1; rgb_min = (rgb_n[0](float const*, double*); template void igl::rgb_to_hsv(double const*, double*); #endif