Changeset 2293
- Timestamp:
- Apr 16, 2008, 12:12:05 AM (15 years ago)
- Location:
- research/2008-displacement
- Files:
-
- 11 added
- 1 deleted
- 13 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
research/2008-displacement/README
r2292 r2293 67 67 set mxtics 2 68 68 set mytics 2 69 set xlabel "$dx$" 70 set ylabel "$dy$" 71 unset mztics 72 unset ztics 69 73 set size square 70 74 set xzeroaxis 71 75 set yzeroaxis 72 set xlabel "dx" font "Italic,32" 73 splot 'part0/lena-values.txt' with lines 76 set lmargin screen 0.0 #.05 77 set bmargin screen 0.2 # .15 78 set tmargin screen 0.9 #.95 79 set rmargin screen 0.9 #.95 80 set terminal epslatex color size 5,2 blacktext 81 unset colorbox 82 #set lmargin 0.05 83 #set rmargin 0.95 84 #splot 'part0/lena-values.txt' with lines 85 set output "lena-values.tex" 86 splot '../part0/lena-values.txt' with lines lw 3 notitle 87 unset output 88 set term pop 74 89 75 90 … … 128 143 set xrange [-.1:.4] 129 144 set yrange [.4:-.1] 130 set grid 131 set lmargin screen 0.05 132 set bmargin screen 0.15 133 set tmargin screen 0.95 134 set rmargin screen 0.95 135 unset colorbox 136 set pm3d explicit map interpolate 1.8,1.8 137 set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow") 138 unset key 139 #splot "histo-fs.txt" notitle 140 set terminal epslatex color size 1.8,1.8 blacktext 145 set xlabel "$dx$" 146 set ylabel "$dy$" 147 set grid 148 set lmargin screen 0.05 149 set bmargin screen 0.25 150 set tmargin screen 0.95 151 set rmargin screen 0.95 152 unset colorbox 153 set pm3d explicit map interpolate 1.8,1.8 154 set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow") 155 unset key 156 #splot "../../subblock/histo-fs.txt" notitle 157 set terminal epslatex color size 1.8,2.0 blacktext 141 158 set output "fs-histo.tex" 142 splot " histo-fs.txt" notitle159 splot "../../subblock/histo-fs.txt" notitle 143 160 unset output 144 161 set term pop … … 156 173 set xrange [-.1:.9] 157 174 set yrange [.9:-.1] 158 set grid 159 set lmargin screen 0.05 160 set bmargin screen 0.15 161 set tmargin screen 0.95 162 set rmargin screen 0.95 163 unset colorbox 164 set pm3d explicit map interpolate 1.8,1.8 165 set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow") 166 unset key 167 #splot "histo-jajuni.txt" notitle 168 set terminal epslatex color size 1.8,1.8 blacktext 175 set xlabel "$dx$" 176 set ylabel "$dy$" 177 set grid 178 set lmargin screen 0.05 179 set bmargin screen 0.25 180 set tmargin screen 0.95 181 set rmargin screen 0.95 182 unset colorbox 183 set pm3d explicit map interpolate 1.8,1.8 184 set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow") 185 unset key 186 #splot "../../subblock/histo-jajuni.txt" notitle 187 set terminal epslatex color size 1.8,2.0 blacktext 169 188 set output "jajuni-histo.tex" 170 splot " histo-jajuni.txt" notitle189 splot "../../subblock/histo-jajuni.txt" notitle 171 190 unset output 172 191 set term pop … … 191 210 set xrange [-.2:.2] 192 211 set yrange [.3:-.1] 193 set grid 194 set lmargin screen 0.05 195 set bmargin screen 0.15 196 set tmargin screen 0.95 197 set rmargin screen 0.95 198 unset colorbox 199 set pm3d explicit map interpolate 1.8,1.8 200 set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow") 201 unset key 202 splot "histo-ostro.txt" notitle 203 set terminal epslatex color size 1.8,1.8 blacktext 212 set xlabel "$dx$" 213 set ylabel "$dy$" 214 set xtics -.2,0.1 215 set grid 216 set lmargin screen 0.05 217 set bmargin screen 0.25 218 set tmargin screen 0.95 219 set rmargin screen 0.95 220 unset colorbox 221 set pm3d explicit map interpolate 1.8,1.8 222 set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow") 223 unset key 224 splot "../../subblock/histo-ostro.txt" notitle 225 set terminal epslatex color size 1.8,2.0 blacktext 204 226 set output "ostro-histo.tex" 205 splot " histo-ostro.txt" notitle227 splot "../../subblock/histo-ostro.txt" notitle 206 228 unset output 207 229 set term pop … … 220 242 set xrange [-.5:.2] 221 243 set yrange [.6:-.1] 222 set grid 223 set lmargin screen 0.05 224 set bmargin screen 0.15 225 set tmargin screen 0.95 226 set rmargin screen 0.95 227 unset colorbox 228 set pm3d explicit map interpolate 1.8,1.8 229 set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow") 230 unset key 231 splot "histo-optimum.txt" notitle 232 set terminal epslatex color size 1.8,1.8 blacktext 244 set xlabel "$dx$" 245 set ylabel "$dy$" 246 set grid 247 set lmargin screen 0.05 248 set bmargin screen 0.25 249 set tmargin screen 0.95 250 set rmargin screen 0.95 251 unset colorbox 252 set pm3d explicit map interpolate 1.8,1.8 253 set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow") 254 unset key 255 splot "../../subblock/histo-optimum.txt" notitle 256 set terminal epslatex color size 1.8,2.0 blacktext 233 257 set output "optimum-histo.tex" 234 splot " histo-optimum.txt" notitle258 splot "../../subblock/histo-optimum.txt" notitle 235 259 unset output 236 260 set term pop … … 249 273 set xrange [-.3:.3] 250 274 set yrange [.6:-.1] 251 set grid 252 set lmargin screen 0.05 253 set bmargin screen 0.15 254 set tmargin screen 0.95 255 set rmargin screen 0.95 256 unset colorbox 257 set pm3d explicit map interpolate 1.8,1.8 258 set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow") 259 unset key 260 splot "histo-serpopt.txt" notitle 261 set terminal epslatex color size 1.8,1.8 blacktext 275 set xlabel "$dx$" 276 set ylabel "$dy$" 277 set grid 278 set lmargin screen 0.05 279 set bmargin screen 0.25 280 set tmargin screen 0.95 281 set rmargin screen 0.95 282 unset colorbox 283 set pm3d explicit map interpolate 1.8,1.8 284 set palette model RGB defined(0 "white", 1 "blue", 2 "red", 3 "yellow") 285 unset key 286 splot "../../subblock/histo-serpopt.txt" notitle 287 set terminal epslatex color size 1.8,2.0 blacktext 262 288 set output "serpopt-histo.tex" 263 splot " histo-serpopt.txt" notitle289 splot "../../subblock/histo-serpopt.txt" notitle 264 290 unset output 265 291 set term pop … … 287 313 cat -n $x | sed 's/^ *[0-9]*\([0-9]\)[[:space:]]*/[\1] /; s/....###/###/; s/\[[27]/[1/; s/\[[38]/[2/; s/\[[49]/[3/; s/\[[50]/[4/' 288 314 289 # 315 # Convert lena results to cropped detail 316 convert output-7-3-5-1-serp.png -crop 160x160+32+160 crop-7-3-5-1-serp.png 317 convert output-7-4-5-0-serp.png -crop 160x160+32+160 crop-7-4-5-0-serp.png 318 -
research/2008-displacement/paper/Makefile
r2277 r2293 1 1 all: paper.pdf 2 2 3 paper.pdf: paper.tex fs-histo.tex 3 IMAGES = direction.tex fs-histo.tex jajuni-histo.tex lena-values.tex optimum-histo.tex ostro-histo.tex serpopt-histo.tex 4 5 paper.pdf: paper.tex $(IMAGES) 4 6 latex paper.tex 5 7 latex paper.tex 6 dvipdf paper.dvi 8 dvips paper.dvi 9 sed -i 's,/Title.*,/Title (Reinstating Floyd-Steinberg: Improved Metrics for Quality Assessment of Error Diffusion Algorithms),' paper.ps 10 ps2pdf paper.ps 7 11 8 12 clean: 9 rm -f paper.log paper.dvi paper.aux paper.pdf 13 rm -f paper.log paper.dvi paper.aux paper.pdf paper.ps 10 14 -
research/2008-displacement/paper/fs-histo.tex
r2277 r2293 73 73 \fi 74 74 \setlength{\unitlength}{0.0500bp}% 75 \begin{picture}(2590.00,2 590.00)%75 \begin{picture}(2590.00,2880.00)% 76 76 \gplgaddtomacro\gplbacktext{% 77 77 }% … … 401 401 \color{black}% 402 402 \csname LTb\endcsname% 403 \put(130,104){\makebox(0,0){\strut{}-0.1}}% 404 \csname LTb\endcsname% 405 \put(596,104){\makebox(0,0){\strut{} 0}}% 406 \csname LTb\endcsname% 407 \put(1062,104){\makebox(0,0){\strut{} 0.1}}% 408 \csname LTb\endcsname% 409 \put(1528,104){\makebox(0,0){\strut{} 0.2}}% 410 \csname LTb\endcsname% 411 \put(1994,104){\makebox(0,0){\strut{} 0.3}}% 412 \csname LTb\endcsname% 413 \put(2460,104){\makebox(0,0){\strut{} 0.4}}% 414 \csname LTb\endcsname% 415 \put(-42,2460){\makebox(0,0)[r]{\strut{}-0.1}}% 416 \csname LTb\endcsname% 417 \put(-42,2046){\makebox(0,0)[r]{\strut{} 0}}% 418 \csname LTb\endcsname% 419 \put(-42,1632){\makebox(0,0)[r]{\strut{} 0.1}}% 420 \csname LTb\endcsname% 421 \put(-42,1218){\makebox(0,0)[r]{\strut{} 0.2}}% 422 \csname LTb\endcsname% 423 \put(-42,804){\makebox(0,0)[r]{\strut{} 0.3}}% 424 \csname LTb\endcsname% 425 \put(-42,390){\makebox(0,0)[r]{\strut{} 0.4}}% 403 \put(130,435){\makebox(0,0){\strut{}-0.1}}% 404 \csname LTb\endcsname% 405 \put(596,435){\makebox(0,0){\strut{} 0}}% 406 \csname LTb\endcsname% 407 \put(1062,435){\makebox(0,0){\strut{} 0.1}}% 408 \csname LTb\endcsname% 409 \put(1528,435){\makebox(0,0){\strut{} 0.2}}% 410 \csname LTb\endcsname% 411 \put(1994,435){\makebox(0,0){\strut{} 0.3}}% 412 \csname LTb\endcsname% 413 \put(2460,435){\makebox(0,0){\strut{} 0.4}}% 414 \put(1295,105){\makebox(0,0){\strut{}$dx$}}% 415 \csname LTb\endcsname% 416 \put(-42,2735){\makebox(0,0)[r]{\strut{}-0.1}}% 417 \csname LTb\endcsname% 418 \put(-42,2332){\makebox(0,0)[r]{\strut{} 0}}% 419 \csname LTb\endcsname% 420 \put(-42,1929){\makebox(0,0)[r]{\strut{} 0.1}}% 421 \csname LTb\endcsname% 422 \put(-42,1527){\makebox(0,0)[r]{\strut{} 0.2}}% 423 \csname LTb\endcsname% 424 \put(-42,1124){\makebox(0,0)[r]{\strut{} 0.3}}% 425 \csname LTb\endcsname% 426 \put(-42,721){\makebox(0,0)[r]{\strut{} 0.4}}% 427 \put(-636,1728){\rotatebox{90}{\makebox(0,0){\strut{}$dy$}}}% 426 428 }% 427 429 \gplbacktext -
research/2008-displacement/paper/jajuni-histo.tex
r2277 r2293 73 73 \fi 74 74 \setlength{\unitlength}{0.0500bp}% 75 \begin{picture}(2590.00,2 590.00)%75 \begin{picture}(2590.00,2880.00)% 76 76 \gplgaddtomacro\gplbacktext{% 77 77 }% … … 362 362 \color{black}% 363 363 \csname LTb\endcsname% 364 \put(363,104){\makebox(0,0){\strut{} 0}}% 365 \csname LTb\endcsname% 366 \put(829,104){\makebox(0,0){\strut{} 0.2}}% 367 \csname LTb\endcsname% 368 \put(1295,104){\makebox(0,0){\strut{} 0.4}}% 369 \csname LTb\endcsname% 370 \put(1761,104){\makebox(0,0){\strut{} 0.6}}% 371 \csname LTb\endcsname% 372 \put(2227,104){\makebox(0,0){\strut{} 0.8}}% 373 \csname LTb\endcsname% 374 \put(-42,2253){\makebox(0,0)[r]{\strut{} 0}}% 375 \csname LTb\endcsname% 376 \put(-42,1839){\makebox(0,0)[r]{\strut{} 0.2}}% 377 \csname LTb\endcsname% 378 \put(-42,1425){\makebox(0,0)[r]{\strut{} 0.4}}% 379 \csname LTb\endcsname% 380 \put(-42,1011){\makebox(0,0)[r]{\strut{} 0.6}}% 381 \csname LTb\endcsname% 382 \put(-42,597){\makebox(0,0)[r]{\strut{} 0.8}}% 364 \put(363,435){\makebox(0,0){\strut{} 0}}% 365 \csname LTb\endcsname% 366 \put(829,435){\makebox(0,0){\strut{} 0.2}}% 367 \csname LTb\endcsname% 368 \put(1295,435){\makebox(0,0){\strut{} 0.4}}% 369 \csname LTb\endcsname% 370 \put(1761,435){\makebox(0,0){\strut{} 0.6}}% 371 \csname LTb\endcsname% 372 \put(2227,435){\makebox(0,0){\strut{} 0.8}}% 373 \put(1295,105){\makebox(0,0){\strut{}$dx$}}% 374 \csname LTb\endcsname% 375 \put(-42,2533){\makebox(0,0)[r]{\strut{} 0}}% 376 \csname LTb\endcsname% 377 \put(-42,2130){\makebox(0,0)[r]{\strut{} 0.2}}% 378 \csname LTb\endcsname% 379 \put(-42,1728){\makebox(0,0)[r]{\strut{} 0.4}}% 380 \csname LTb\endcsname% 381 \put(-42,1326){\makebox(0,0)[r]{\strut{} 0.6}}% 382 \csname LTb\endcsname% 383 \put(-42,923){\makebox(0,0)[r]{\strut{} 0.8}}% 384 \put(-636,1728){\rotatebox{90}{\makebox(0,0){\strut{}$dy$}}}% 383 385 }% 384 386 \gplbacktext -
research/2008-displacement/paper/lena-values.tex
r2292 r2293 73 73 \fi 74 74 \setlength{\unitlength}{0.0500bp}% 75 \begin{picture}( 3600.00,2880.00)%75 \begin{picture}(7200.00,2880.00)% 76 76 \gplgaddtomacro\gplbacktext{% 77 \csname LTb\endcsname% 78 \put(2232,356){\makebox(0,0){\strut{}-1}}% 79 \put(2736,356){\makebox(0,0){\strut{}-0.5}}% 80 \put(3240,356){\makebox(0,0){\strut{} 0}}% 81 \put(3744,356){\makebox(0,0){\strut{} 0.5}}% 82 \put(4248,356){\makebox(0,0){\strut{} 1}}% 83 \put(4380,2592){\makebox(0,0)[l]{\strut{}-1}}% 84 \put(4380,2088){\makebox(0,0)[l]{\strut{}-0.5}}% 85 \put(4380,1584){\makebox(0,0)[l]{\strut{} 0}}% 86 \put(4380,1080){\makebox(0,0)[l]{\strut{} 0.5}}% 87 \put(4380,576){\makebox(0,0)[l]{\strut{} 1}}% 77 88 }% 78 89 \gplgaddtomacro\gplfronttext{% 79 90 \csname LTb\endcsname% 80 \put( -695,944){\makebox(0,0)[r]{\strut{}-1}}%91 \put(5625,2199){\makebox(0,0)[r]{\strut{} 1.5}}% 81 92 \csname LTb\endcsname% 82 \put( -513,866){\makebox(0,0)[r]{\strut{}-0.8}}%93 \put(5625,1979){\makebox(0,0)[r]{\strut{} 1}}% 83 94 \csname LTb\endcsname% 84 \put( -332,787){\makebox(0,0)[r]{\strut{}-0.6}}%95 \put(5625,1759){\makebox(0,0)[r]{\strut{} 0.7}}% 85 96 \csname LTb\endcsname% 86 \put( -151,709){\makebox(0,0)[r]{\strut{}-0.4}}%97 \put(5625,1539){\makebox(0,0)[r]{\strut{} 0.52}}% 87 98 \csname LTb\endcsname% 88 \put( 30,631){\makebox(0,0)[r]{\strut{}-0.2}}%99 \put(5625,1319){\makebox(0,0)[r]{\strut{} 0.42}}% 89 100 \csname LTb\endcsname% 90 \put( 211,552){\makebox(0,0)[r]{\strut{} 0}}%101 \put(5625,1099){\makebox(0,0)[r]{\strut{} 0.35}}% 91 102 \csname LTb\endcsname% 92 \put( 392,474){\makebox(0,0)[r]{\strut{} 0.2}}%103 \put(5625,879){\makebox(0,0)[r]{\strut{} 0.31}}% 93 104 \csname LTb\endcsname% 94 \put(574,396){\makebox(0,0)[r]{\strut{} 0.4}}% 95 \csname LTb\endcsname% 96 \put(755,317){\makebox(0,0)[r]{\strut{} 0.6}}% 97 \csname LTb\endcsname% 98 \put(936,239){\makebox(0,0)[r]{\strut{} 0.8}}% 99 \csname LTb\endcsname% 100 \put(1117,161){\makebox(0,0)[r]{\strut{} 1}}% 101 \csname LTb\endcsname% 102 \put(1437,188){\makebox(0,0){\strut{}-1}}% 103 \csname LTb\endcsname% 104 \put(1706,241){\makebox(0,0){\strut{}-0.8}}% 105 \csname LTb\endcsname% 106 \put(1973,294){\makebox(0,0){\strut{}-0.6}}% 107 \csname LTb\endcsname% 108 \put(2242,347){\makebox(0,0){\strut{}-0.4}}% 109 \csname LTb\endcsname% 110 \put(2511,399){\makebox(0,0){\strut{}-0.2}}% 111 \csname LTb\endcsname% 112 \put(2779,452){\makebox(0,0){\strut{} 0}}% 113 \csname LTb\endcsname% 114 \put(3048,505){\makebox(0,0){\strut{} 0.2}}% 115 \csname LTb\endcsname% 116 \put(3316,558){\makebox(0,0){\strut{} 0.4}}% 117 \csname LTb\endcsname% 118 \put(3585,611){\makebox(0,0){\strut{} 0.6}}% 119 \csname LTb\endcsname% 120 \put(3854,664){\makebox(0,0){\strut{} 0.8}}% 121 \csname LTb\endcsname% 122 \put(4122,716){\makebox(0,0){\strut{} 1}}% 123 \put(-574,1554){\makebox(0,0)[r]{\strut{} 0.2}}% 124 \put(-574,1660){\makebox(0,0)[r]{\strut{} 0.4}}% 125 \put(-574,1766){\makebox(0,0)[r]{\strut{} 0.6}}% 126 \put(-574,1872){\makebox(0,0)[r]{\strut{} 0.8}}% 127 \put(-574,1978){\makebox(0,0)[r]{\strut{} 1}}% 128 \put(-574,2084){\makebox(0,0)[r]{\strut{} 1.2}}% 129 \put(-574,2190){\makebox(0,0)[r]{\strut{} 1.4}}% 130 \put(-574,2296){\makebox(0,0)[r]{\strut{} 1.6}}% 131 \put(-574,2402){\makebox(0,0)[r]{\strut{} 1.8}}% 132 \put(-574,2508){\makebox(0,0)[r]{\strut{} 2}}% 133 \put(-574,2614){\makebox(0,0)[r]{\strut{} 2.2}}% 105 \put(3240,72){\makebox(0,0){\strut{}$dx$}}% 106 \put(4752,1584){\makebox(0,0){\strut{}$dy$}}% 134 107 }% 135 108 \gplbacktext 136 \put(0,0){\includegraphics{lena- min}}%109 \put(0,0){\includegraphics{lena-values}}% 137 110 \gplfronttext 138 111 \end{picture}% -
research/2008-displacement/paper/optimum-histo.tex
r2277 r2293 73 73 \fi 74 74 \setlength{\unitlength}{0.0500bp}% 75 \begin{picture}(2590.00,2 590.00)%75 \begin{picture}(2590.00,2880.00)% 76 76 \gplgaddtomacro\gplbacktext{% 77 77 }% … … 348 348 \color{black}% 349 349 \color{black}% 350 \color{black}% 351 \csname LTb\endcsname% 352 \put(130,104){\makebox(0,0){\strut{}-0.5}}% 353 \csname LTb\endcsname% 354 \put(463,104){\makebox(0,0){\strut{}-0.4}}% 355 \csname LTb\endcsname% 356 \put(796,104){\makebox(0,0){\strut{}-0.3}}% 357 \csname LTb\endcsname% 358 \put(1129,104){\makebox(0,0){\strut{}-0.2}}% 359 \csname LTb\endcsname% 360 \put(1461,104){\makebox(0,0){\strut{}-0.1}}% 361 \csname LTb\endcsname% 362 \put(1794,104){\makebox(0,0){\strut{} 0}}% 363 \csname LTb\endcsname% 364 \put(2127,104){\makebox(0,0){\strut{} 0.1}}% 365 \csname LTb\endcsname% 366 \put(2460,104){\makebox(0,0){\strut{} 0.2}}% 367 \csname LTb\endcsname% 368 \put(-42,2460){\makebox(0,0)[r]{\strut{}-0.1}}% 369 \csname LTb\endcsname% 370 \put(-42,2164){\makebox(0,0)[r]{\strut{} 0}}% 371 \csname LTb\endcsname% 372 \put(-42,1868){\makebox(0,0)[r]{\strut{} 0.1}}% 373 \csname LTb\endcsname% 374 \put(-42,1572){\makebox(0,0)[r]{\strut{} 0.2}}% 375 \csname LTb\endcsname% 376 \put(-42,1278){\makebox(0,0)[r]{\strut{} 0.3}}% 377 \csname LTb\endcsname% 378 \put(-42,982){\makebox(0,0)[r]{\strut{} 0.4}}% 379 \csname LTb\endcsname% 380 \put(-42,686){\makebox(0,0)[r]{\strut{} 0.5}}% 381 \csname LTb\endcsname% 382 \put(-42,390){\makebox(0,0)[r]{\strut{} 0.6}}% 350 \csname LTb\endcsname% 351 \put(130,435){\makebox(0,0){\strut{}-0.5}}% 352 \csname LTb\endcsname% 353 \put(463,435){\makebox(0,0){\strut{}-0.4}}% 354 \csname LTb\endcsname% 355 \put(796,435){\makebox(0,0){\strut{}-0.3}}% 356 \csname LTb\endcsname% 357 \put(1129,435){\makebox(0,0){\strut{}-0.2}}% 358 \csname LTb\endcsname% 359 \put(1461,435){\makebox(0,0){\strut{}-0.1}}% 360 \csname LTb\endcsname% 361 \put(1794,435){\makebox(0,0){\strut{} 0}}% 362 \csname LTb\endcsname% 363 \put(2127,435){\makebox(0,0){\strut{} 0.1}}% 364 \csname LTb\endcsname% 365 \put(2460,435){\makebox(0,0){\strut{} 0.2}}% 366 \put(1295,105){\makebox(0,0){\strut{}$dx$}}% 367 \csname LTb\endcsname% 368 \put(-42,2735){\makebox(0,0)[r]{\strut{}-0.1}}% 369 \csname LTb\endcsname% 370 \put(-42,2447){\makebox(0,0)[r]{\strut{} 0}}% 371 \csname LTb\endcsname% 372 \put(-42,2159){\makebox(0,0)[r]{\strut{} 0.1}}% 373 \csname LTb\endcsname% 374 \put(-42,1871){\makebox(0,0)[r]{\strut{} 0.2}}% 375 \csname LTb\endcsname% 376 \put(-42,1585){\makebox(0,0)[r]{\strut{} 0.3}}% 377 \csname LTb\endcsname% 378 \put(-42,1297){\makebox(0,0)[r]{\strut{} 0.4}}% 379 \csname LTb\endcsname% 380 \put(-42,1009){\makebox(0,0)[r]{\strut{} 0.5}}% 381 \csname LTb\endcsname% 382 \put(-42,721){\makebox(0,0)[r]{\strut{} 0.6}}% 383 \put(-636,1728){\rotatebox{90}{\makebox(0,0){\strut{}$dy$}}}% 383 384 }% 384 385 \gplbacktext -
research/2008-displacement/paper/ostro-histo.tex
r2277 r2293 73 73 \fi 74 74 \setlength{\unitlength}{0.0500bp}% 75 \begin{picture}(2590.00,2 590.00)%75 \begin{picture}(2590.00,2880.00)% 76 76 \gplgaddtomacro\gplbacktext{% 77 77 }% … … 445 445 \color{black}% 446 446 \color{black}% 447 \csname LTb\endcsname% 448 \put(130,104){\makebox(0,0){\strut{}-0.2}}% 449 \csname LTb\endcsname% 450 \put(421,104){\makebox(0,0){\strut{}-0.15}}% 451 \csname LTb\endcsname% 452 \put(713,104){\makebox(0,0){\strut{}-0.1}}% 453 \csname LTb\endcsname% 454 \put(1004,104){\makebox(0,0){\strut{}-0.05}}% 455 \csname LTb\endcsname% 456 \put(1295,104){\makebox(0,0){\strut{} 0}}% 457 \csname LTb\endcsname% 458 \put(1586,104){\makebox(0,0){\strut{} 0.05}}% 459 \csname LTb\endcsname% 460 \put(1877,104){\makebox(0,0){\strut{} 0.1}}% 461 \csname LTb\endcsname% 462 \put(2169,104){\makebox(0,0){\strut{} 0.15}}% 463 \csname LTb\endcsname% 464 \put(2460,104){\makebox(0,0){\strut{} 0.2}}% 465 \csname LTb\endcsname% 466 \put(-42,2460){\makebox(0,0)[r]{\strut{}-0.1}}% 467 \csname LTb\endcsname% 468 \put(-42,2201){\makebox(0,0)[r]{\strut{}-0.05}}% 469 \csname LTb\endcsname% 470 \put(-42,1942){\makebox(0,0)[r]{\strut{} 0}}% 471 \csname LTb\endcsname% 472 \put(-42,1683){\makebox(0,0)[r]{\strut{} 0.05}}% 473 \csname LTb\endcsname% 474 \put(-42,1425){\makebox(0,0)[r]{\strut{} 0.1}}% 475 \csname LTb\endcsname% 476 \put(-42,1167){\makebox(0,0)[r]{\strut{} 0.15}}% 477 \csname LTb\endcsname% 478 \put(-42,908){\makebox(0,0)[r]{\strut{} 0.2}}% 479 \csname LTb\endcsname% 480 \put(-42,649){\makebox(0,0)[r]{\strut{} 0.25}}% 481 \csname LTb\endcsname% 482 \put(-42,390){\makebox(0,0)[r]{\strut{} 0.3}}% 447 \color{black}% 448 \csname LTb\endcsname% 449 \put(130,435){\makebox(0,0){\strut{}-0.2}}% 450 \csname LTb\endcsname% 451 \put(713,435){\makebox(0,0){\strut{}-0.1}}% 452 \csname LTb\endcsname% 453 \put(1295,435){\makebox(0,0){\strut{} 0}}% 454 \csname LTb\endcsname% 455 \put(1877,435){\makebox(0,0){\strut{} 0.1}}% 456 \csname LTb\endcsname% 457 \put(2460,435){\makebox(0,0){\strut{} 0.2}}% 458 \put(1295,105){\makebox(0,0){\strut{}$dx$}}% 459 \csname LTb\endcsname% 460 \put(-42,2735){\makebox(0,0)[r]{\strut{}-0.1}}% 461 \csname LTb\endcsname% 462 \put(-42,2483){\makebox(0,0)[r]{\strut{}-0.05}}% 463 \csname LTb\endcsname% 464 \put(-42,2231){\makebox(0,0)[r]{\strut{} 0}}% 465 \csname LTb\endcsname% 466 \put(-42,1979){\makebox(0,0)[r]{\strut{} 0.05}}% 467 \csname LTb\endcsname% 468 \put(-42,1728){\makebox(0,0)[r]{\strut{} 0.1}}% 469 \csname LTb\endcsname% 470 \put(-42,1477){\makebox(0,0)[r]{\strut{} 0.15}}% 471 \csname LTb\endcsname% 472 \put(-42,1225){\makebox(0,0)[r]{\strut{} 0.2}}% 473 \csname LTb\endcsname% 474 \put(-42,973){\makebox(0,0)[r]{\strut{} 0.25}}% 475 \csname LTb\endcsname% 476 \put(-42,721){\makebox(0,0)[r]{\strut{} 0.3}}% 477 \put(-768,1728){\rotatebox{90}{\makebox(0,0){\strut{}$dy$}}}% 483 478 }% 484 479 \gplbacktext -
research/2008-displacement/paper/paper.tex
r2292 r2293 102 102 (LSMB) \cite{lsmb}. 103 103 104 HVS models are usually low-pass filters. Nasanen \cite{nasanen}, Analoui 105 and Allebach \cite{allebach} found that using Gaussian models gave visually 106 pleasing results, an observation confirmed by independent visual perception 107 studies \cite{mcnamara}. 104 HVS models are usually low-pass filters. Nasanen \cite{nasanen}, Analoui and 105 Allebach found that using Gaussian models gave visually pleasing results, an 106 observation confirmed by independent visual perception studies \cite{mcnamara}. 108 107 109 108 DBS yields halftones of impressive quality. However, despite efforts to make … … 116 115 Boustrophedonic (serpentine) scanning has been shown to cause fewer visual 117 116 artifacts \cite{halftoning}, but other, more complex processing paths such as 118 Hilbert curves \cite{spacefilling} , \cite{peano} are seldom used as they do not119 im prove the image quality significantly.117 Hilbert curves \cite{spacefilling} are seldom used as they do not improve the 118 image quality significantly. 120 119 121 120 Intuitively, as the error is always propagated to the bottom-left or … … 169 168 Experiments show that for a given image and a given corresponding halftone, 170 169 $E_{dx,dy}$ has a local minimum almost always away from $(dx,dy) = (0,0)$ (Fig. 171 \ref{fig:lena- min}). Let $E$ be an error metric where this remains true. We170 \ref{fig:lena-values}). Let $E$ be an error metric where this remains true. We 172 171 call the local minimum $E_{min}$: 173 172 … … 177 176 178 177 \begin{figure} 179 \begin{center} 180 \input{lena-min} 181 \caption{Mean square error for the \textit{Lena} image. $v$ is a simple 182 $11\times11$ Gaussian convolution kernel with $\sigma = 1.2$ and 183 $(dx,dy)$ vary in $[-1,1]\times[-1,1]$.} 184 \label{fig:lena-min} 178 \begin{minipage}[c]{0.8\textwidth} 179 \input{lena-values} 180 \end{minipage} 181 \begin{center} 182 \caption{Mean square error for the \textit{Lena} image ($\times10^4$). $v$ 183 is a simple $11\times11$ Gaussian convolution kernel with $\sigma 184 = 1.2$ and $(dx,dy)$ vary in $[-1,1]\times[-1,1]$.} 185 \label{fig:lena-values} 185 186 \end{center} 186 187 \end{figure} … … 202 203 we tested two serpentine error diffusion algorithms: Ostromoukhov's simple 203 204 error diffusion \cite{ostromoukhov}, which uses a variable coefficient kernel, 204 and Wong and Allebach's optimum error diffusion kernel \cite{wong} .205 and Wong and Allebach's optimum error diffusion kernel \cite{wong}: 205 206 206 207 \begin{center} … … 268 269 the error computed at $(dx,dy)$. As $E_{fast}$ does not depend on the image, it 269 270 is a lot faster to compute than $E_{min}$, and as it is statistically closer to 270 $E_{min}$, we can expect it to be a better error estimation than $E$ .271 $E_{min}$, we can expect it to be a better error estimation than $E$: 271 272 272 273 \begin{center} 273 \begin{tabular}{|l|c|c|c|c| }274 \hline 275 &~ $E\times10^4$ ~&~ $ dx$ ~&~ $dy$ ~&~ $E_{fast}\times10^4$ ~\\ \hline276 ~raster Floyd-Steinberg ~&~ 3.7902 ~&~ 0.16 ~&~ 0.28 ~&~ 3.3447 ~\\ \hline277 ~raster Ja-Ju-Ni ~&~ 9.7013 ~&~ 0.26 ~&~ 0.76 ~&~ 7.5891 ~\\ \hline278 ~Ostromoukhov ~&~ 4.6892 ~&~ 0.00 ~&~ 0.19 ~&~ 4.6117 ~\\ \hline279 ~optimum kernel ~&~ 7.5209 ~&~ 0.00 ~&~ 0.34 ~&~ 6.8233 ~\\274 \begin{tabular}{|l|c|c|c|c|c|} 275 \hline 276 &~ $E\times10^4$ ~&~ $E_{min}\times10^4$ ~&~ $dx$ ~&~ $dy$ ~&~ $E_{fast}\times10^4$ ~\\ \hline 277 ~raster Floyd-Steinberg ~&~ 3.7902 ~&~ 3.1914 ~&~ 0.16 ~&~ 0.28 ~&~ 3.3447 ~\\ \hline 278 ~raster Ja-Ju-Ni ~&~ 9.7013 ~&~ 6.6349 ~&~ 0.26 ~&~ 0.76 ~&~ 7.5891 ~\\ \hline 279 ~Ostromoukhov ~&~ 4.6892 ~&~ 4.4783 ~&~ 0.00 ~&~ 0.19 ~&~ 4.6117 ~\\ \hline 280 ~optimum kernel ~&~ 7.5209 ~&~ 6.5772 ~&~ 0.00 ~&~ 0.34 ~&~ 6.8233 ~\\ 280 281 \hline 281 282 \end{tabular} … … 309 310 ~ 1 ~&~ 7 3 6 0 ~&~ 4.65512 ~&~ 3.94217 ~\\ \hline 310 311 ~ 2 ~&~ 8 3 5 0 ~&~ 4.65834 ~&~ 4.03699 ~\\ \hline 311 ~ \dots ~&~ \dots ~&~ \dots ~&~ \dots ~\\\hline312 \hline 312 313 ~ 5 ~&~ 7 3 5 1 ~&~ 4.68588 ~&~ 3.79556 ~\\ \hline 313 ~ \dots ~&~ \dots ~&~ \dots ~&~ \dots ~\\\hline314 \hline 314 315 ~ 18 ~&~ 6 3 5 2 ~&~ 4.91020 ~&~ 3.70465 ~\\ \hline 315 316 ~ \dots ~&~ \dots ~&~ \dots ~&~ \dots ~\\ … … 327 328 ~ 1 ~&~ 6 3 5 2 ~&~ 3.70465 ~&~ 4.91020 ~\\ \hline 328 329 ~ 2 ~&~ 7 3 5 1 ~&~ 3.79556 ~&~ 4.68588 ~\\ \hline 329 ~ \dots ~&~ \dots ~&~ \dots ~&~ \dots ~\\\hline330 \hline 330 331 ~ 15 ~&~ 7 3 6 0 ~&~ 3.94217 ~&~ 4.65512 ~\\ \hline 331 ~ \dots ~&~ \dots ~&~ \dots ~&~ \dots ~\\\hline332 \hline 332 333 ~ 22 ~&~ 8 3 5 0 ~&~ 4.03699 ~&~ 4.65834 ~\\ \hline 333 334 ~ \dots ~&~ \dots ~&~ \dots ~&~ \dots ~\\ … … 339 340 coefficients were indeed amongst the best possible for raster scan. 340 341 More importantly, using $E$ as the decision variable may have elected 341 $\frac{1}{16}\{8,4,4,0\}$, which is in fact a poor choice. 342 $\frac{1}{16}\{7,3,6,0\}$ or $\frac{1}{16}\{8,3,5,0\}$, which are in fact poor 343 choices. 342 344 343 345 For serpentine scan, however, our experiment suggests that … … 348 350 \begin{figure} 349 351 \begin{center} 350 \includegraphics[width=0.8\textwidth]{lena.eps} 351 \caption{halftone of \textit{Lena} using serpentine error diffusion and 352 the optimum coefficients $\frac{1}{16}\{7,4,5,0\}$ that improve 353 on the standard Floyd-Steinberg coefficients in terms of visual 354 quality for the HVS model studied in section 3.} 352 \includegraphics[width=0.4\textwidth]{output-7-3-5-1-serp.eps} 353 ~ 354 \includegraphics[width=0.4\textwidth]{output-7-4-5-0-serp.eps} 355 \end{center} 356 \begin{center} 357 \includegraphics[width=0.4\textwidth]{crop-7-3-5-1-serp.eps} 358 ~ 359 \includegraphics[width=0.4\textwidth]{crop-7-4-5-0-serp.eps} 360 \caption{halftone of \textit{Lena} using serpentine error diffusion 361 (\textit{left}) and the optimum coefficients 362 $\frac{1}{16}\{7,4,5,0\}$ (\textit{right}) that improve on the 363 standard Floyd-Steinberg coefficients in terms of visual quality 364 for the HVS model used in section 3. The detailed area 365 (\textit{bottom}) shows fewer structure artifacts in the regions 366 with low contrast.} 355 367 \label{fig:lena7450} 356 368 \end{center} … … 419 431 Computer Graphics (Proceedings of SIGGRAPH 91), 25(4):81--90, 1991 420 432 421 \bibitem[9]{peano} 422 I.~H. Witten and R.~M. Neal, 423 \textit{Using peano curves for bilevel display of continuous-tone images}. 424 IEEE Computer Graphics \& Appl., 2:47--52, 1982 425 426 \bibitem[10]{nasanen} 433 \bibitem[9]{nasanen} 427 434 R. Nasanen, 428 435 \textit{Visibility of halftone dot textures}. 429 436 IEEE Trans. Syst. Man. Cyb., vol. 14, no. 6, pp. 920--924, 1984 430 437 431 \bibitem[1 1]{allebach}438 \bibitem[10]{allebach} 432 439 M. Analoui and J.~P. Allebach, 433 440 \textit{Model-based halftoning using direct binary search}. … … 435 442 February 1992, San Jose, CA, pp. 96--108 436 443 437 \bibitem[1 2]{mcnamara}444 \bibitem[11]{mcnamara} 438 445 Ann McNamara, 439 446 \textit{Visual Perception in Realistic Image Synthesis}. 440 447 Computer Graphics Forum, vol. 20, no. 4, pp. 211--224, 2001 441 448 442 \bibitem[1 3]{bhatt}449 \bibitem[12]{bhatt} 443 450 Bhatt \textit{et al.}, 444 451 \textit{Direct Binary Search with Adaptive Search and Swap}. 445 452 \url{http://www.ima.umn.edu/2004-2005/MM8.1-10.05/activities/Wu-Chai/halftone.pdf} 446 453 447 \bibitem[1 4]{4chan}454 \bibitem[13]{4chan} 448 455 moot, 449 456 \url{http://www.4chan.org/} 450 457 451 \bibitem[1 5]{wong}458 \bibitem[14]{wong} 452 459 P.~W. Wong and J.~P. Allebach, 453 460 \textit{Optimum error-diffusion kernel design}. 454 461 Proc. SPIE Vol. 3018, p. 236--242, 1997 455 462 456 \bibitem[1 6]{ostromoukhov}463 \bibitem[15]{ostromoukhov} 457 464 Victor Ostromoukhov, 458 465 \textit{A Simple and Efficient Error-Diffusion Algorithm}. … … 460 467 Series, pp. 567--572, 2001 461 468 462 \bibitem[1 7]{lsmb}469 \bibitem[16]{lsmb} 463 470 T.~N. Pappas and D.~L. Neuhoff, 464 471 \textit{Least-squares model-based halftoning}. … … 466 473 CA, Feb. 1992, vol. 1666, pp. 165--176 467 474 468 \bibitem[1 8]{stability}475 \bibitem[17]{stability} 469 476 R. Eschbach, Z. Fan, K.~T. Knox and G. Marcu, 470 477 \textit{Threshold Modulation and Stability in Error Diffusion}. 471 478 in Signal Processing Magazine, IEEE, July 2003, vol. 20, issue 4, pp. 39--50 472 479 473 \bibitem[1 9]{sullivan}480 \bibitem[18]{sullivan} 474 481 J. Sullivan, R. Miller and G. Pios, 475 482 \textit{Image halftoning using a visual model in error diffusion}. … … 479 486 480 487 \end{document} 481 -
research/2008-displacement/paper/serpopt-histo.tex
r2277 r2293 73 73 \fi 74 74 \setlength{\unitlength}{0.0500bp}% 75 \begin{picture}(2590.00,2 590.00)%75 \begin{picture}(2590.00,2880.00)% 76 76 \gplgaddtomacro\gplbacktext{% 77 77 }% … … 386 386 \color{black}% 387 387 \color{black}% 388 \csname LTb\endcsname% 389 \put(130,104){\makebox(0,0){\strut{}-0.3}}% 390 \csname LTb\endcsname% 391 \put(519,104){\makebox(0,0){\strut{}-0.2}}% 392 \csname LTb\endcsname% 393 \put(907,104){\makebox(0,0){\strut{}-0.1}}% 394 \csname LTb\endcsname% 395 \put(1295,104){\makebox(0,0){\strut{} 0}}% 396 \csname LTb\endcsname% 397 \put(1683,104){\makebox(0,0){\strut{} 0.1}}% 398 \csname LTb\endcsname% 399 \put(2071,104){\makebox(0,0){\strut{} 0.2}}% 400 \csname LTb\endcsname% 401 \put(2460,104){\makebox(0,0){\strut{} 0.3}}% 402 \csname LTb\endcsname% 403 \put(-42,2460){\makebox(0,0)[r]{\strut{}-0.1}}% 404 \csname LTb\endcsname% 405 \put(-42,2164){\makebox(0,0)[r]{\strut{} 0}}% 406 \csname LTb\endcsname% 407 \put(-42,1868){\makebox(0,0)[r]{\strut{} 0.1}}% 408 \csname LTb\endcsname% 409 \put(-42,1572){\makebox(0,0)[r]{\strut{} 0.2}}% 410 \csname LTb\endcsname% 411 \put(-42,1278){\makebox(0,0)[r]{\strut{} 0.3}}% 412 \csname LTb\endcsname% 413 \put(-42,982){\makebox(0,0)[r]{\strut{} 0.4}}% 414 \csname LTb\endcsname% 415 \put(-42,686){\makebox(0,0)[r]{\strut{} 0.5}}% 416 \csname LTb\endcsname% 417 \put(-42,390){\makebox(0,0)[r]{\strut{} 0.6}}% 388 \color{black}% 389 \csname LTb\endcsname% 390 \put(130,435){\makebox(0,0){\strut{}-0.3}}% 391 \csname LTb\endcsname% 392 \put(519,435){\makebox(0,0){\strut{}-0.2}}% 393 \csname LTb\endcsname% 394 \put(907,435){\makebox(0,0){\strut{}-0.1}}% 395 \csname LTb\endcsname% 396 \put(1295,435){\makebox(0,0){\strut{} 0}}% 397 \csname LTb\endcsname% 398 \put(1683,435){\makebox(0,0){\strut{} 0.1}}% 399 \csname LTb\endcsname% 400 \put(2071,435){\makebox(0,0){\strut{} 0.2}}% 401 \csname LTb\endcsname% 402 \put(2460,435){\makebox(0,0){\strut{} 0.3}}% 403 \put(1295,105){\makebox(0,0){\strut{}$dx$}}% 404 \csname LTb\endcsname% 405 \put(-42,2735){\makebox(0,0)[r]{\strut{}-0.1}}% 406 \csname LTb\endcsname% 407 \put(-42,2447){\makebox(0,0)[r]{\strut{} 0}}% 408 \csname LTb\endcsname% 409 \put(-42,2159){\makebox(0,0)[r]{\strut{} 0.1}}% 410 \csname LTb\endcsname% 411 \put(-42,1871){\makebox(0,0)[r]{\strut{} 0.2}}% 412 \csname LTb\endcsname% 413 \put(-42,1585){\makebox(0,0)[r]{\strut{} 0.3}}% 414 \csname LTb\endcsname% 415 \put(-42,1297){\makebox(0,0)[r]{\strut{} 0.4}}% 416 \csname LTb\endcsname% 417 \put(-42,1009){\makebox(0,0)[r]{\strut{} 0.5}}% 418 \csname LTb\endcsname% 419 \put(-42,721){\makebox(0,0)[r]{\strut{} 0.6}}% 420 \put(-636,1728){\rotatebox{90}{\makebox(0,0){\strut{}$dy$}}}% 418 421 }% 419 422 \gplbacktext
Note: See TracChangeset
for help on using the changeset viewer.