mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-09 01:35:38 +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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Image::AverageDownscale(uint32 xtimes, uint32 ytimes, EWrapMode wrapMode) {
|
void Image::AverageDownscale(uint32 xtimes, uint32 ytimes) {
|
||||||
const uint32 w = GetWidth();
|
const uint32 w = GetWidth();
|
||||||
const uint32 h = GetHeight();
|
const uint32 h = GetHeight();
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ void Image::AverageDownscale(uint32 xtimes, uint32 ytimes, EWrapMode wrapMode) {
|
||||||
toAvg.clear();
|
toAvg.clear();
|
||||||
for(uint32 y = j * pixelsY; y < (j+1) * pixelsY; y++) {
|
for(uint32 y = j * pixelsY; y < (j+1) * pixelsY; y++) {
|
||||||
for(uint32 x = i * pixelsX; x < (i+1) * pixelsX; x++) {
|
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);
|
bool bOffsetNewPixels = false);
|
||||||
|
|
||||||
// Downscales the image by using a simple averaging of the neighboring pixel values
|
// Downscales the image by using a simple averaging of the neighboring pixel values
|
||||||
void AverageDownscale(uint32 xtimes, uint32 ytimes,
|
void AverageDownscale(uint32 xtimes, uint32 ytimes);
|
||||||
EWrapMode wrapMode = eWrapMode_Wrap);
|
|
||||||
|
|
||||||
void ComputeHessianEigenvalues(::std::vector<float> &eigOne,
|
void ComputeHessianEigenvalues(::std::vector<float> &eigOne,
|
||||||
::std::vector<float> &eigTwo,
|
::std::vector<float> &eigTwo,
|
||||||
|
|
Loading…
Reference in a new issue