Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tdh8316 committed Mar 14, 2020
1 parent 0d807e0 commit f9a8735
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions README.md
Expand Up @@ -68,11 +68,24 @@ The `POISSON_DISK` option is extremely slow, while it can provide the best resul

It takes a minimum of 5 seconds (1000 points and threshold sampling) to a maximum of 3 minutes (50000 points and poisson disk sampling).

## Interfaces
Currently, `Triangler` is a command-line tool.
>Note: `triangler-cli.py is deprecated.`
## API
See example:
```python
from skimage.io import imread
import triangler
import matplotlib.pyplot as plt

t = triangler.Triangler(sample_method=triangler.SampleMethod.POISSON_DISK)

img = imread("image.jpg")
img_tri = t.convert(img)

_, axes = plt.subplots(1, 2, figsize=(16, 16))
axes[0].imshow(img)
axes[1].imshow(img_tri)
plt.show()
```

I'll make it usable as a library.

# Sample
|Original|5000 Points|
Expand Down

0 comments on commit f9a8735

Please sign in to comment.