Hi All, Could someone please point me to a good matrix library for Go (i'm sure something exists, although i can't seem to find it!).
Am hoping to do some image manipulation for which being able to work with matrices would be great. Have written simple helper stuff for images (i used to find myself doing the same a few time, so just put it in a library) ( https://github.com/simran91/monkeysee ). On another note, if you do look at the library above, you'll notice that my source image at ( https://github.com/simran91/monkeysee/blob/master/samples/rgb.png) and destination image at ( https://github.com/simran91/monkeysee/blob/master/samples/rgb-png-to-png-mod-SwapRGBtoGBR-autogenerated.png) have colours messed up. The colours were meant to have swapped, but the Red has gone into being an Pink. This i suspect is because when we call colour.RGBA() we get uint32's, but when we set the colour using color.RGBA{r, g, b, a} they r,g,b,a have to be uint8's (File where i have to do the conversion: https://github.com/simran91/monkeysee/blob/master/mimage/rgba-matrix-to-raw-data.go ) Has anyone else come across this? I suspect there is a way to load up color.RGBA and give it uint32's? Would appreciate any pointers in that regard as well. thanks, simran. -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.