Skip to content

Implementation (or adaptation) of Espen Kluge Portrait algorithm

License

Notifications You must be signed in to change notification settings

WendelHime/go-kluge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-kluge

This repository is an adaptation from christiankastner/klugen-portrait, which is a implementation of Espen Kluge Alternatives. Basically the algorithm generate random points on image and connect them with lines based on a minimum distance (provided by user, in pixels).

Installing

Install the command with go:

go install github.com/WendelHime/go-kluge/cmd/kluge

Usage

kluge -h
Usage of kluge: kluge -filepath images/ada_in_blank.png -threshold 0.35 -minDist 50 -output images/ada_output.png
  -filepath string
        the filepath for a segmented image (default "/home/wotan/Pictures/ada_in_blank.png")
  -minDist float
        minimum distance of points (default 70)
  -output string
        output filepath (default "./output.png")
  -threshold float
        a threshold for random creation of points, the value must be in the range 0, 100. (default 0.25)

Examples

Command:

kluge -filepath images/ada_in_blank.png -threshold 0.35 -minDist 50 -output images/ada_output.png
original image output

About

Implementation (or adaptation) of Espen Kluge Portrait algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages