| 1 |
|
| 2 |
ImageTooth 2.0.0 |
| 3 |
================ |
| 4 |
|
| 5 |
ImageTooth is a library that provides programmers and users a simple way to generate images for odontograms. IT allows to choose between png or jpg images. |
| 6 |
|
| 7 |
What Does ImageTooth Do? |
| 8 |
------------------------ |
| 9 |
|
| 10 |
### Tooth image generation. |
| 11 |
|
| 12 |
Together with the library there is a simple script that allows you to create the teeth images directly. |
| 13 |
A simple interface for painting teeth faces. |
| 14 |
All permutations generating. |
| 15 |
|
| 16 |
Example: |
| 17 |
------- |
| 18 |
|
| 19 |
First, you need to install the gem: |
| 20 |
|
| 21 |
gem install imagetooth |
| 22 |
|
| 23 |
Then, you can run the imagetooth command, like this: |
| 24 |
|
| 25 |
imagetooth --image wwwww.png --folder ./ |
| 26 |
|
| 27 |
This code generates an image where the filename's characters means: |
| 28 |
|
| 29 |
* w - White |
| 30 |
* g - Green |
| 31 |
* b - Blue |
| 32 |
* n - Black |
| 33 |
* r - Red |
| 34 |
|
| 35 |
and are ordered, begining on the upper face of the the tooth and moving clockwise ending on the center face. |
| 36 |
[top][right][bottom][left][center].png |
| 37 |
 |
| 38 |
|
| 39 |
More examples |
| 40 |
------------- |
| 41 |
|
| 42 |
Generate a tooth with its top face painted with red: |
| 43 |
|
| 44 |
imagetooth --image rwwww.png --folder ./ |
| 45 |
|
| 46 |
Generate a tooth with its top face painted red and center one green: |
| 47 |
|
| 48 |
imagetooth --image rwwwg.png --folder ./ |
| 49 |
|
| 50 |
Generate a tooth with top face painted red, left one black and center one green: |
| 51 |
|
| 52 |
imagetooth --image rwwng.png --folder ./ |
| 53 |
|
| 54 |
All permutations with 5 faces and 5 colors (3125) |
| 55 |
|
| 56 |
imagetooth --all --folder images/ |
| 57 |
|
| 58 |
this code generates 3125 images that are separated within five folders images/w/ images/g/ images/b/ images/r/ images/n/ |
| 59 |
|
| 60 |
|