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

Method Sum

C++/programs/Statistics.cpp:160–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160double Statistics::Sum(Image& Source)
161{
162 Check1Channel(Source);
163
164 PrepareBuffer(Source);
165
166 Kernel(reduce_sum, In(Source), Out(), *m_PartialResultBuffer, Source.Step(), Source.Width(), Source.Height());
167
168 m_PartialResultBuffer->Read(true);
169
170 return ReduceSum(m_PartialResult);
171}
172
173double Statistics::SumSqr(Image& Source)
174{

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected