Versions in this module Expand all Collapse all v0 v0.2.0 Sep 19, 2026 Changes in this version + func DecodeImage(rd io.Reader) (image.Image, string, error) + func WritePNG(w io.Writer, img image.Image) error type Remover + func (r *Remover) AlphaReader(rd io.Reader) (*image.Gray, error) + func (r *Remover) Cutout(rd io.Reader, w io.Writer) error + func (r *Remover) RemoveReader(rd io.Reader) (*image.NRGBA, error) v0.1.0 Sep 19, 2026 Changes in this version + const DefaultCanvasSize + const DefaultInputName + const DefaultOutputName + func SidecarPath(modelPath string) string + type Config struct + CanvasSize int + InputName string + LibraryPath string + ModelPath string + OutputName string + SidecarPath string + VerifyModelSHA256 bool + type Remover struct + func New(cfg Config) (*Remover, error) + func (r *Remover) Alpha(img image.Image) (*image.Gray, error) + func (r *Remover) Close() error + func (r *Remover) Remove(img image.Image) (*image.RGBA, error) + func (r *Remover) Sidecar() *Sidecar + type Sidecar struct + CanvasSize int + ConvNeXtSize string + DepthVariant string + InputDtype string + InputName string + InputShape []int + MAE float64 + MattingInputSize int + MaxAbs float64 + ModelVersion string + OpsetVersion int + OutputName string + OutputShape []int + Precision string + SHA256 string + SizeMB float64 + Variant string + func LoadSidecar(path string) (*Sidecar, error) + func (s *Sidecar) String() string