/**
 * Filter all blocks using a gaussian filter with sigma = stdev
 */
func filterBlocks(blocks []image.Image, stdev float64) []image.Image {
	filteredBlocks := make([]image.Image, len(blocks), len(blocks))
	for i, block := range blocks {
		filteredBlocks[i] = imaging.Blur(block, stdev, 5)
	}
	return filteredBlocks
}
func (s *Segmenter) smoothImage(sigma float64) {
	fmt.Printf("blur image... ")
	start := time.Now()
	s.img = imaging.Blur(s.img, sigma, 4)
	fmt.Println(time.Since(start))
}