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

Function floodFill

src/backend/cpu/flood_fill.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20template<typename T>
21Array<T> floodFill(const Array<T>& image, const Array<uint>& seedsX,
22 const Array<uint>& seedsY, const T newValue,
23 const T lowValue, const T highValue,
24 const af::connectivity nlookup) {
25 auto out = createValueArray(image.dims(), T(0));
26 getQueue().enqueue(kernel::floodFill<T>, out, image, seedsX, seedsY,
27 newValue, lowValue, highValue, nlookup);
28 return out;
29}
30
31#define INSTANTIATE(T) \
32 template Array<T> floodFill(const Array<T>&, const Array<uint>&, \

Callers 1

ccHelperFunction · 0.50

Calls 4

createValueArrayFunction · 0.70
getQueueFunction · 0.50
dimsMethod · 0.45
enqueueMethod · 0.45

Tested by

no test coverage detected