func MakeOneGIFFromMap(dicomNames []string, imgMap map[string]image.Image, delay int, withTransparency bool) (*gif.GIF, error) {
	images := make([]image.Image, 0, len(dicomNames))
	for _, dicomName := range dicomNames {
		images = append(images, imgMap[dicomName])
	}

	outGif, err := MakeOneGIF(images, delay, withTransparency)
	if err != nil {
		return nil, err
	}

	return outGif, nil
}
// MakeOneGIFFromMap creates an animated gif from an ordered list of image names
// along with a map of the respective images.
MakeOneGIFFromMap creates an animated gif from an ordered list of image names
along with a map of the respective images.
// MakeOneGIFFromMap creates an animated gif from an ordered list of image names // along with a map of the respective images .
func MakeOneGIFFromMap(dicomNames []string, imgMap map[string]image.Image, delay int, withTransparency bool) (*gif.GIF, error) {
	images := make([]image.Image, 0, len(dicomNames))
	for _, dicomName := range dicomNames {
		images = append(images, imgMap[dicomName])
	}
	outGif, err := MakeOneGIF(images, delay, withTransparency)
	if err != nil {
		return nil, err
	}
	return outGif, nil
}
func MakeOneGIFFromMap ( dicomNames [ ] string , imgMap map [ string ] image . Image , delay int , withTransparency bool ) ( * gif . GIF , error ) { images := make ( [ ] image . Image , 0 , len ( dicomNames ) ) for _ , dicomName := range dicomNames { images = append ( images , imgMap [ dicomName ] ) } outGif , err := MakeOneGIF ( images , delay , withTransparency ) if err != nil { return nil , err } return outGif , nil }
MakeOneGIFFromMap creates an animated gif from an ordered list of image names
along with a map of the respective images.
MakeOneGIFFromMap creates an animated gif from an ordered list of image names along with a map of the respective images .