Commit 41789ad2 authored by Yipeng Hu's avatar Yipeng Hu

Update NaiveImage.cpp

parent d9ca5fba
......@@ -90,7 +90,7 @@ void NaiveImage::medianFilter(int half_ksize)
}
// compute the median value then assign
sort(neighbours.begin(),neighbours.end());
tmp_pData[idy*m_width+idx] = neighbours[(ksize*ksize+1)/2];
tmp_pData[idy*m_width+idx] = neighbours[(ksize*ksize-1)/2];
}
}
......
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