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

Function normalizeImage

examples/image_processing/image_editing.cpp:72–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void normalizeImage(array &in) {
73 float min = af::min<float>(in);
74 float max = af::max<float>(in);
75 in = 255.0f * ((in - min) / (max - min));
76}
77
78/**
79 * dimensions of the mask control the thickness of the boundary that

Callers 1

boundaryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected