Fix average downscale method signature.

This commit is contained in:
Pavel Krajcevski 2013-10-10 10:49:49 -04:00
parent 3a4a841309
commit 9bbc707379
2 changed files with 3 additions and 4 deletions

View file

@ -246,7 +246,7 @@ static Pixel AveragePixels(const ::std::vector<Pixel> &pixels) {
return result;
}
void Image::AverageDownscale(uint32 xtimes, uint32 ytimes, EWrapMode wrapMode) {
void Image::AverageDownscale(uint32 xtimes, uint32 ytimes) {
const uint32 w = GetWidth();
const uint32 h = GetHeight();
@ -271,7 +271,7 @@ void Image::AverageDownscale(uint32 xtimes, uint32 ytimes, EWrapMode wrapMode) {
toAvg.clear();
for(uint32 y = j * pixelsY; y < (j+1) * pixelsY; y++) {
for(uint32 x = i * pixelsX; x < (i+1) * pixelsX; x++) {
toAvg.push_back(GetPixel(x, y, wrapMode));
toAvg.push_back((*this)(x, y));
}
}

View file

@ -83,8 +83,7 @@ class Image {
bool bOffsetNewPixels = false);
// Downscales the image by using a simple averaging of the neighboring pixel values
void AverageDownscale(uint32 xtimes, uint32 ytimes,
EWrapMode wrapMode = eWrapMode_Wrap);
void AverageDownscale(uint32 xtimes, uint32 ytimes);
void ComputeHessianEigenvalues(::std::vector<float> &eigOne,
::std::vector<float> &eigTwo,