mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-08 06:15:31 +00:00
Fix average downscale method signature.
This commit is contained in:
parent
3a4a841309
commit
9bbc707379
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue