Skip to content

When the panorama is too large, function 'Worker' it will throw error #1

@uglyer

Description

@uglyer

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

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions