Commit 13a9d4a6 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #3888 from alalek:fix_build

parents 4b0543c8 d326c770
...@@ -224,9 +224,9 @@ void FastNlMeansDenoisingInvoker<T, IT, UIT, D, WT>::operator() (const Range& ra ...@@ -224,9 +224,9 @@ void FastNlMeansDenoisingInvoker<T, IT, UIT, D, WT>::operator() (const Range& ra
// calc weights // calc weights
IT estimation[pixelInfo<T>::channels], weights_sum[pixelInfo<WT>::channels]; IT estimation[pixelInfo<T>::channels], weights_sum[pixelInfo<WT>::channels];
for (size_t channel_num = 0; channel_num < pixelInfo<T>::channels; channel_num++) for (int channel_num = 0; channel_num < pixelInfo<T>::channels; channel_num++)
estimation[channel_num] = 0; estimation[channel_num] = 0;
for (size_t channel_num = 0; channel_num < pixelInfo<WT>::channels; channel_num++) for (int channel_num = 0; channel_num < pixelInfo<WT>::channels; channel_num++)
weights_sum[channel_num] = 0; weights_sum[channel_num] = 0;
for (int y = 0; y < search_window_size_; y++) for (int y = 0; y < search_window_size_; y++)
......
...@@ -66,7 +66,7 @@ template <typename ET, int n> struct pixelInfo_<Vec<ET, n> > ...@@ -66,7 +66,7 @@ template <typename ET, int n> struct pixelInfo_<Vec<ET, n> >
template <typename T> struct pixelInfo: public pixelInfo_<T> template <typename T> struct pixelInfo: public pixelInfo_<T>
{ {
using typename pixelInfo_<T>::sampleType; typedef typename pixelInfo_<T>::sampleType sampleType;
static inline sampleType sampleMax() static inline sampleType sampleMax()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment