4 ms·
You probably want go with 0.1+0.2 != 0.3
by dejj 6y ago
You probably want go with 0.1+0.2 != 0.3
- HenryBemis 6y agoI would say that it's like pixel's RGB at address 1x1 is 0-0-0 and pixel at address 1x2 is 0-0-2 and squeezing between them a pixel with color 0-0-1 (averaging the two values near it)(assuming doing this on a image that has 1 pixel height and e.g. 2 pixes width; so that the new image would be would be: 1x1 0-0-0 (original) 1x2 0-0-1 (made up) 1x3 0-0-2 (original)
- webmaven 6y agoWhat you're describing is relatively straightforward (bi)linear interpolation. It is worth noting that even at this relatively simple level, going with bicubic interpolation instead will usually give you nicer results, except in cases where the hard edges in the image are only horizontal or vertical.