huspark / fake-miniature

A python program that enhances an input image to a miniature scene.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fake Miniature

Fake-minature is a python program that manipulates various image properties in order to generate a miniature scene.

    

How to Run

  • Usage
    python3 main.py [-h] -f FILENAME [-s FILTER_SIZE] [-r FILTER_RADIUS] [-b BRIGHTEN_FACTOR] [-c SATURATE_FACTOR]

  • Required arguments

    • -f FILENAME, --filename FILENAME
      the input file name
  • Optional arguments

    • -h, --help
      show this help message and exit
    • -s FILTER_SIZE, --filter_size FILTER_SIZE
      the vertical size of each Gaussian filter in pixels
    • -r FILTER_RADIUS, --filter_radius FILTER_RADIUS
      the sigma value for the first Gaussian blur filter
    • -b BRIGHTEN_FACTOR, --brighten_factor BRIGHTEN_FACTOR
      the constant for a brightening effect
    • -c SATURATE_FACTOR, --saturate_factor SATURATE_FACTOR
      the constant for a saturation effect

Citation

Using Blur to Affect Perceived Distance and Size,
http://graphics.berkeley.edu/papers/Held-UBA-2010-03/Held-UBA-2010-03.pdf

About

A python program that enhances an input image to a miniature scene.


Languages

Language:Python 100.0%