MCPcopy Create free account
hub / github.com/CRVI/OpenCLIPP / Mean

Method Mean

C++/programs/Statistics.cpp:199–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199double Statistics::Mean(Image& Source)
200{
201 Check1Channel(Source);
202
203 PrepareBuffer(Source);
204
205 Kernel(reduce_mean, In(Source), Out(), *m_PartialResultBuffer, Source.Step(), Source.Width(), Source.Height());
206
207 m_PartialResultBuffer->Read(true);
208
209 return ReduceMean(m_PartialResult);
210}
211
212double Statistics::MeanSqr(Image& Source)
213{

Callers

nothing calls this directly

Calls 7

Check1ChannelFunction · 0.85
ReduceMeanFunction · 0.85
StepMethod · 0.80
WidthMethod · 0.80
HeightMethod · 0.80
NbChannelsMethod · 0.80
ReadMethod · 0.45

Tested by

no test coverage detected