Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit abc124e

Browse files
author
Thomas Lindemeier
committed
Formatting
1 parent c50cd83 commit abc124e

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Diff for: README.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,30 @@ This is a collection of base pigments whose absorption and scattering coefficien
2828
* Titanium White
2929

3030

31-
![](example/pexels-photo-977737-extractedPalette.json.basePigments.jpg =1000x)
31+
![](example/pexels-photo-977737-extractedPalette.json.basePigments.jpg)
3232

3333
**Figure 1:** This is a visualization of the pigments and their resulting reflectance on black and white background.
3434

3535

36+
3637
### Create a palette from an input picture and mixing them from base pigments
3738
Command to extract a pallete of size 6 from a input image:
3839
```shell
3940
./PaintMixer -b ../palettes/BasePigments/AcrylicsBasePigments.json -i ../example/pexels-photo-977737.jpeg -n 6 -o ../example/pexels-photo-977737-extractedPalette.json
4041
```
4142

42-
![](example/pexels-photo-977737.jpeg =1000x)
43+
![](example/pexels-photo-977737.jpeg)
4344

4445
**Figure 2:** The input image [2] we will extract a palette from using the pigments from Figure 1 .
4546

46-
![](example/pexels-photo-977737-extractedPalette.json.jpg =1000x)
47+
48+
49+
![](example/pexels-photo-977737-extractedPalette.json.jpg)
4750

4851
**Figure 3:** The extracted palette rendered on black and white background.
4952

53+
54+
5055
These are the weights computed with the PaintMixer solver:
5156

5257
| Primary Magenta | Carmine Red| Cadmium Red Medium| Raw Umber| Cadmium Orange Hue| Cadmium Yellow Hue| Primary Yellow| Leaf Green| Phthalo Green| Cobalt Blue Tone Deep| Ultramarine Blue| Lilac| Lamp Black | Titanium White |
@@ -56,9 +61,12 @@ These are the weights computed with the PaintMixer solver:
5661
| 0 |0 | 0 | 0 | 0 | 0.00757|0 | 0.192 | 0.59 | 0.139 | 0.0424 | 0 |0 | 0.0292 |
5762
| 0 |0 | 0.0854 | 0 | 0.171 | 0.0692 |0.674| 0 | 0 | 0 | 0 | 0 |0 | 0 |
5863
| 0.146 |0.211 | 0.437 | 0 | 0.206 | 0 |0 | 0 | 0 | 0 | 0 | 0 |0 | 0 |
59-
| 0 |0 | 0 | 0.0063 | 0 | 0 |0 | 0.0369 | 0.212 | 0.216 | 0.259 | 0.0625 |0.206 | 0 |
64+
| 0 |0 | 0 | 0.0063 | 0 | 0 |0 | 0.0369 | 0.212 | 0.216 | 0.259 | 0.0625 |0.206 | 0 |
65+
6066
**Table 1:** These are the weights for mixing the paints as shown in Figure 3 from the base pigments shown in Figure 1.
6167

68+
69+
6270
These are the absorption and scattering coefficients of the extracted palette computed using the PaintMixer solver and output as json:
6371
```json
6472
{

0 commit comments

Comments
 (0)