FAQ

On Tue, Jun 16, 2015 at 1:32 PM, chai2010 wrote:
go test
--- FAIL: TestPyrDown (0.01s)
main_test.go:39: (0,0): {232 140 119 255}, {231 139 118 255}
main_test.go:43: (0,0): {231 139 118 255}, {231 139 118 255}
main_test.go:44: (0,0): {232 139 118 255} != {231 139 118 255}
Well, it should be simple enough to put some printf's in for when the
destination (x, y) == (0, 0), in your TestPyrDown and in impl.go's
ablInterpolator.scale_RGBA_RGBA_* and see where the difference is
introduced.

s11r := float64(s11ru)
s11r = xFrac1*s01r + xFrac0*s11r
s11r = yFrac1*s10r + yFrac0*s11r

only the last `s11r = ...` is used.
The result of the first `s11r = ...` is used on the second line, and
the result of the second one is used on the third line.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 11 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJun 15, '15 at 7:47p
activeJun 21, '15 at 9:57p
posts11
users3
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase