sphere2cubeGo
sphere2cubeGo copied to clipboard
When the panorama is too large, function 'Worker' it will throw error
Hello, this function is to read the picture repeatedly, and when the panorama is too large, it will lead to running. Can be optimized, just read once and then go. will be run faster.
originalPixels, err := worker.GetPixels(reader)
if err != nil {
panic(err)
os.Exit(2)
}
log.Printf("read file: %v ---> finished", originalImagePath)
for _, tileName := range tileNames {
tile := worker.Tile{TileName: tileName, TileSize: tileSize}
go worker.Worker(originalPixels, tile, cacheResult, originalImagePath, done)
}
And how to slove sawtooth
This is very helpful, the attached patch worked perfectly and i can now open bigger files without issues.
Hey @uglyer @segovia-no sounds very reasonable, could you make a PR? I would be happy to merge it then
@flash286 Any news on the PR review attached? Greetings.