Changeset 1980
- Timestamp:
- Nov 16, 2007, 4:11:15 PM (13 years ago)
- Location:
- www/study
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
www/study/part4.html
r1976 r1980 154 154 come up with. </p> 155 155 156 <p> Finally, this is gamma-corrected 4-colour dithering: </p> 157 158 <p style="text-align: center;"> 159 <img src="out4-2-3.png" width="256" height="256" 160 class="inline" alt="Floyd-Steinberg, 4 colours, gamma-corrected" /> 161 <img src="grad4-2-3.png" width="32" height="256" 162 class="inline" alt="Floyd-Steinberg, 4 colours, gamma-corrected gradient" /> 163 </p> 164 156 165 <div style="float: left;"> 157 166 <a href="part3.html">Error diffusion <<<</a> -
www/study/study.py
r1979 r1980 442 442 # Output 4.2.1: gamma-corrected 2-colour Floyd-Steinberg 443 443 # Output 4.2.2: gamma-corrected 3-colour Floyd-Steinberg 444 # Output 4.2.3: gamma-corrected 4-colour Floyd-Steinberg 444 445 def test42x(src, mat, threshold): 445 446 (w, h) = src.size() … … 495 496 test42x(lenna256bw, ERROR_FSTEIN, threshold_3).writePng("out4-2-2.png") 496 497 test42x(gradient256bw, ERROR_FSTEIN, threshold_3).writePng("grad4-2-2.png") 498 test42x(lenna256bw, ERROR_FSTEIN, threshold_4).writePng("out4-2-3.png") 499 test42x(gradient256bw, ERROR_FSTEIN, threshold_4).writePng("grad4-2-3.png") 497 500 498 501 # Pattern 5.0.1: 8-colour palette
Note: See TracChangeset
for help on using the changeset viewer.