MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / convert

Function convert

src/api/c/hsv_rgb.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23template<typename T, bool isHSV2RGB>
24static af_array convert(const af_array& in) {
25 const Array<T> input = getArray<T>(in);
26 if (isHSV2RGB) {
27 return getHandle<T>(hsv2rgb<T>(input));
28 } else {
29 return getHandle<T>(rgb2hsv<T>(input));
30 }
31}
32
33template<bool isHSV2RGB>
34af_err convert(af_array* out, const af_array& in) {

Callers 1

hsv2rgb_convertFunction · 0.50

Calls 5

swapFunction · 0.85
af_create_handleFunction · 0.70
getTypeMethod · 0.45
dimsMethod · 0.45
ndimsMethod · 0.45

Tested by

no test coverage detected