ImageMattingApp
Documentation for ImageMattingApp.
ImageMattingApp.download_modnet_model
ImageMattingApp.inference
ImageMattingApp.postprocessing
ImageMattingApp.preprocessing
ImageMattingApp.download_modnet_model
— Methoddownload_moddnet_model()
Download ONNX version of MODNet to "model/modnetphotographicportrait_matting.onnx".
ImageMattingApp.inference
— Methodinference(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);
ImageMattingApp.postprocessing
— Methodpostprocessing(matte, img_h, img_w)
Postprocessing for MODNet output.
Arguments
matte
: MODNet's outputimg_h
: the height of input imageimg_w
: the width of input image
Returns
matte
: Processed matte
ImageMattingApp.preprocessing
— Methodpreprocessing(img)
Preprocessing for MODNet input.
Arguments
img
: the image to process
Returns
img
: processed imageimg_h
: the height of input imageimg_w
: the width of input image