| 158 | } |
| 159 | |
| 160 | double 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 | |
| 173 | double Statistics::SumSqr(Image& Source) |
| 174 | { |
nothing calls this directly
no test coverage detected