@@ -28,25 +28,30 @@ This is a collection of base pigments whose absorption and scattering coefficien
28
28
* Titanium White
29
29
30
30
31
- ![ ] (example/pexels-photo-977737-extractedPalette.json.basePigments.jpg =1000x )
31
+ ![ ] ( example/pexels-photo-977737-extractedPalette.json.basePigments.jpg )
32
32
33
33
** Figure 1:** This is a visualization of the pigments and their resulting reflectance on black and white background.
34
34
35
35
36
+
36
37
### Create a palette from an input picture and mixing them from base pigments
37
38
Command to extract a pallete of size 6 from a input image:
38
39
``` shell
39
40
./PaintMixer -b ../palettes/BasePigments/AcrylicsBasePigments.json -i ../example/pexels-photo-977737.jpeg -n 6 -o ../example/pexels-photo-977737-extractedPalette.json
40
41
```
41
42
42
- ![ ] (example/pexels-photo-977737.jpeg =1000x )
43
+ ![ ] ( example/pexels-photo-977737.jpeg )
43
44
44
45
** Figure 2:** The input image [ 2] we will extract a palette from using the pigments from Figure 1 .
45
46
46
- ![ ] (example/pexels-photo-977737-extractedPalette.json.jpg =1000x)
47
+
48
+
49
+ ![ ] ( example/pexels-photo-977737-extractedPalette.json.jpg )
47
50
48
51
** Figure 3:** The extracted palette rendered on black and white background.
49
52
53
+
54
+
50
55
These are the weights computed with the PaintMixer solver:
51
56
52
57
| 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:
56
61
| 0 | 0 | 0 | 0 | 0 | 0.00757| 0 | 0.192 | 0.59 | 0.139 | 0.0424 | 0 | 0 | 0.0292 |
57
62
| 0 | 0 | 0.0854 | 0 | 0.171 | 0.0692 | 0.674| 0 | 0 | 0 | 0 | 0 | 0 | 0 |
58
63
| 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
+
60
66
** Table 1:** These are the weights for mixing the paints as shown in Figure 3 from the base pigments shown in Figure 1.
61
67
68
+
69
+
62
70
These are the absorption and scattering coefficients of the extracted palette computed using the PaintMixer solver and output as json:
63
71
``` json
64
72
{
0 commit comments