func EmptyAs(src Image) Image {
	switch m := src.(type) {
	case *RGB:
		return NewRGB(m.Bounds())
	case *RGB64:
		return NewRGB64(m.Bounds())
	case *XYZ:
		return NewXYZ(m.Bounds())
	case *XYZ64:
		return NewXYZ64(m.Bounds())
	default:
		return NewRGB64(m.Bounds())
	}
}
EmptyAs returns a new empty image with the same underlying type and params as src.
package hdr
import (
	"image"
	"image/color"
	"github.com/mdouchement/hdr/hdrcolor"
)
type Image interface {
	image.Image
	HDRAt(x, y int) hdrcolor.Color
	Size() int
}
type ImageSet interface {
	Set(x, y int, c color.Color)
}