ImageMattingApp

Documentation for ImageMattingApp.

ImageMattingApp.inferenceMethod
inference(img)

Obtain a matte portrait from the input image.

Arguments

  • img: the image for image matting

Returns

  • matte: MODNet's output

Examples

julia> matte = inference(img);
source
ImageMattingApp.postprocessingMethod
postprocessing(matte, img_h, img_w)

Postprocessing for MODNet output.

Arguments

  • matte: MODNet's output
  • img_h: the height of input image
  • img_w: the width of input image

Returns

  • matte: Processed matte
source
ImageMattingApp.preprocessingMethod
preprocessing(img)

Preprocessing for MODNet input.

Arguments

  • img: the image to process

Returns

  • img: processed image
  • img_h: the height of input image
  • img_w: the width of input image
source