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

Function normalizeImage

examples/image_processing/filters.cpp:115–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void normalizeImage(array &in) {
116 float min = af::min<float>(in);
117 float max = af::max<float>(in);
118 in = 255.0f * ((in - min) / (max - min));
119}
120
121array DifferenceOfGaussian(const array &in, int window_radius1,
122 int window_radius2) {

Callers 1

DifferenceOfGaussianFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected