Skip to content

A simple python implementation of Morphological Antialiasing

License

Notifications You must be signed in to change notification settings

ZFhuang/MLAA-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLAA-python

A simple python implementation of Morphological Antialiasing

Notes

Requirements

  • tqdm
  • numpy

Usage

python mlaa-cpu.py --origin {your_folder}
optional arguments:
  -h, --help         show this help message and exit
  --origin DIR_ORI   folder of origin images
  --target DIR_TAR   target folder of result images. Default path is
                     "{DIR_ORI}_out/"
  --save STR_SUFFIX  result images suffix
  --type STR_TYPE    type string for finding img edges. "L": using luminance;
                     "P": using per-channel color value
  --th NUM_TH        threshold for finding edges

Figures

Input

luminance

Edge

edge

Weight

weight

Result

result

About

A simple python implementation of Morphological Antialiasing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages