Update
This commit is contained in:
parent
124b9d1e7c
commit
3f374a4713
85 changed files with 2281 additions and 2272 deletions
|
@ -5,8 +5,8 @@ Bilinear interpolation (also bilinear filtering) is a simple way of creating a s
|
|||
Why is it named *bilinear*? Probably because it's doing linear interpolation twice: once in *X* direction, then in *Y* direction.
|
||||
|
||||
```
|
||||
####OOOOVVVVaaaaxxxxssssffffllllcccc////!!!!;;;;,,,,....----
|
||||
####OOOOVVVVaaaaxxxxxssssffffllllcccc////!!!!;;;;,,,,.....----
|
||||
####OOOOVVVVaaaaxxxxssssffffllllcccc////!!!!;;;;,,,,....----
|
||||
####OOOOVVVVaaaaxxxxxssssffffllllcccc////!!!!;;;;,,,,.....----
|
||||
####OOOOVVVVaaaaaxxxxssssfffflllllcccc////!!!!!;;;;,,,,....-----
|
||||
###OOOOOVVVVaaaaaxxxxsssssfffflllllcccc////!!!!!;;;;,,,,,....---
|
||||
###OOOOVVVVVaaaaaxxxxsssssfffffllllccccc/////!!!!!;;;;,,,,,.....
|
||||
|
@ -74,7 +74,7 @@ int interpolateBilinear(int topLeft, int topRight, int bottomLeft, int bottomRig
|
|||
int x, int y)
|
||||
{
|
||||
#define FPP 16 // we'll use fixed point to prevent rounding errors
|
||||
|
||||
|
||||
#if 1 // switch between the two versions, should give same results:
|
||||
// horizontal first, then vertical
|
||||
int a = interpolateLinear(topLeft * FPP,topRight * FPP,x);
|
||||
|
@ -97,7 +97,7 @@ int main(void)
|
|||
|
||||
putchar('\n');
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue