Skip to content

CXH-Research/Vignetting-Generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vignetting-Generation

Methods to generate vignetting in images.

Combine vignetting mask and image directly. Simple but effective.

Require pillow, pytorch and torchvision.

Command to run the program

python gen_vig.py

Note

You can alter the center, radius and intensity of vignetting mask.

The default radius is between

max(width, height) // 1.2, max(width, height)

The default strength is a uniform distribution between 0.8 and 1.2.

Example input

Example output

About

Methods to generate vignetting in images

Resources

License

Stars

Watchers

Forks

Languages