/[opencvs]/eyes/enlightenment69.txt
ViewVC logotype

Contents of /eyes/enlightenment69.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Mon Oct 6 06:39:39 2014 UTC (3 years, 6 months ago) by hib
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
Doing cleanup from burner eyes
1 21600
2 is 30 feet * 12 inches * 60 dpi.
3
4
5
6
7 # This is better than enlightenmnet.txt because
8 # 1. we always do the hologram now.
9 # 2. A border 1 square wide offsets the bigger squares so the eyes and tounge have only one image under them.
10 # 3. the tounge color can also be decided
11 #
12 # This evolutionary version was created for image number 17 of the set.
13
14 # build_final.sh was the old code for this
15 #
16
17
18 export PATH=$PATH:~/cvs/player/bin
19
20 #Size:
21 # 4800 - old school demos
22 # 2048 - new school demos
23 # 31200 - 43.3333333 inches at 720 dpi
24 # 31680 - 44 inches at 720 dpi/22 inches at 1440 dpi
25 # 63360 - 44 inches at 1440 dpi
26 # 28000 - 23.33333 inches at 1200 dpi
27 # 28800 - 24 inches at 1200 dpi
28 # 33600 - 23.333333 inches at 1440 dpi
29 # 16800 - 23.333333 inches at 720 dpi
30 # 131072 - 8192x8192 - this is for handling the fact that the lines are somewhat off kilter.
31 # 11200 - new size 23.33333 inches at 480 dpi
32
33 export ENLIGHTENMENT_SIZE=21600
34
35 # setup for source and size
36 #export ENLIGHTENMENT_HOME=/t/enlightenment/source
37 export ENLIGHTENMENT_HOME=/t/enlightenment/source69
38 export ENLIGHTENMENT_HOMEB=/t/enlightenment/source
39 export MAGICK_TMPDIR=/t/tmp
40 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 32`
41 export ENLIGHTENMENT_ROWS=32
42 export ENLIGHTENMENT_COLUMNS=32
43 export ENLIGHTENMENT_SQUARES=`expr $ENLIGHTENMENT_ROWS \* $ENLIGHTENMENT_COLUMNS`
44 export ENLIGHTENMENT_COLMM=`expr $ENLIGHTENMENT_COLUMNS - 1`
45 export ENLIGHTENMENT_ROWMM=`expr $ENLIGHTENMENT_ROWS - 1`
46 export ENLIGHTENMENT_SQUARESMM=`expr $ENLIGHTENMENT_ROWMM \* $ENLIGHTENMENT_COLMM`
47 export ENLIGHTENMENT_SQUARES_TOTAL=`echo $ENLIGHTENMENT_SQUARESMM`
48 export ENLIGHTENMENT_SAMPLE_SIZE=$ENLIGHTENMENT_SIZE
49 export ENLIGHTENMENT_SQUARES_MINUS_3=`expr $ENLIGHTENMENT_SQUARES_TOTAL - 3`
50 # this part works for 4800 and/or tounge showing lsd.
51 export ENLIGHTEMNENT_LEFT_S=`expr $ENLIGHTENMENT_DOT \* 160 / 300`
52 export ENLIGHTEMNENT_LEFT_X=`expr $ENLIGHTENMENT_DOT \* 81 / 300`
53 export ENLIGHTEMNENT_LEFT_Y=`expr $ENLIGHTENMENT_DOT \* 20 / 300`
54 export ENLIGHTEMNENT_RIGHT_S=`expr $ENLIGHTENMENT_DOT \* 160 / 300`
55 export ENLIGHTEMNENT_RIGHT_X=`expr $ENLIGHTENMENT_DOT \* 48 / 300`
56 export ENLIGHTEMNENT_RIGHT_Y=`expr $ENLIGHTENMENT_DOT \* 10 / 300`
57 export ENLIGHTEMNENT_LSD_S=`expr $ENLIGHTENMENT_DOT \* 133 / 300`
58 export ENLIGHTEMNENT_LSD_X=`expr $ENLIGHTENMENT_DOT \* 80 / 300`
59 export ENLIGHTEMNENT_LSD_Y=`expr $ENLIGHTENMENT_DOT \* 150 / 300`
60 # ^^^ above did not work so I redid it for the source_no_acid below
61 # left 16 left and down right 16 left and down
62 export ENLIGHTEMNENT_LEFT_S=`expr $ENLIGHTENMENT_DOT \* 160 / 300`
63 export ENLIGHTEMNENT_LEFT_X=`expr $ENLIGHTENMENT_DOT \* 65 / 300`
64 export ENLIGHTEMNENT_LEFT_Y=`expr $ENLIGHTENMENT_DOT \* 36 / 300`
65 export ENLIGHTEMNENT_RIGHT_S=`expr $ENLIGHTENMENT_DOT \* 160 / 300`
66 export ENLIGHTEMNENT_RIGHT_X=`expr $ENLIGHTENMENT_DOT \* 32 / 300`
67 export ENLIGHTEMNENT_RIGHT_Y=`expr $ENLIGHTENMENT_DOT \* 26 / 300`
68 export ENLIGHTEMNENT_LSD_S=`expr $ENLIGHTENMENT_DOT \* 133 / 300`
69 export ENLIGHTEMNENT_LSD_X=`expr $ENLIGHTENMENT_DOT \* 80 / 300`
70 export ENLIGHTEMNENT_LSD_Y=`expr $ENLIGHTENMENT_DOT \* 150 / 300`
71
72 # ^^^ set to 131072 to have the squares skewed to the picture
73
74
75
76
77
78 # make a new size:
79 mkdir $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE
80 mkdir $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m
81 mkdir $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE
82 mkdir $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/m
83
84
85 # can multiply by 6 if want to, but there are multiple lines
86 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis.txt $ENLIGHTENMENT_DOT | multiproc.sh bash
87
88 # old way:
89 convert $ENLIGHTENMENT_HOMEB/common/base18k.bmp -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.bmp
90 convert $ENLIGHTENMENT_HOMEB/common/alpha18k.bmp -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha.bmp
91 convert $ENLIGHTENMENT_HOMEB/common/alpha_hologram.png -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.bmp
92 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.bmp >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt &
93 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha.bmp >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha.txt &
94 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.bmp >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.txt &
95 wait
96
97
98
99
100
101
102 # new code: to make the squares accurate witht eh performations.
103 perl $e/enl_box_range.pl > $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/box_range.txt
104 #cat settop0.txt setbottom0.txt setleft0.txt setright0.txt set0.txt | enlightenment_pattern box_range.txt $ENLIGHTENMENT_SIZE 0 0 $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE
105 # and the pattern looked crappy. The psychadelics need to be exact to look good.
106 #So I reverse map the girl and vollia- the girl looks slightly more alive, and the old style mapping can continue
107
108 #new way:
109 echo $ENLIGHTENMENT_HOMEB/common/LucyintheSkywithAmypict.bmp | \
110 enlightenment_straighten /t/enlightenment/source/18000/box_range.txt $ENLIGHTENMENT_SIZE 0 0 $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE \
111 >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt
112 echo $ENLIGHTENMENT_HOMEB/common/alpha_amy_hologram.png | \
113 enlightenment_straighten /t/enlightenment/source/common/box_range4800.txt $ENLIGHTENMENT_SIZE 0 0 $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE \
114 >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.txt
115
116 # to build the hologram is unique because the numbers change based onthe resolution. But here is the 4800 deal
117 # build_greya enl_source.txt 4 4800 4800 600 600 0 4800 0 4800 | convert txt: hologram.png
118
119 # and here
120 # build_greya enl_source.txt 4 31680 31680 720 720 0 31680 0 31680 | convert txt: $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.png
121 #
122 perl $e/enl_4800_to_x.pl </b/art/2011/enlightenment/source/4800/enl_source.txt $ENLIGHTENMENT_SIZE >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/enl_source.txt
123 cd $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE
124
125
126 build_greya enl_source.txt 4 21600 21600 1200 1200 0 21600 0 3600 | convert txt: h0.png &
127 build_greya enl_source.txt 4 21600 21600 1200 1200 0 21600 3600 7200 | convert txt: h1.png &
128 build_greya enl_source.txt 4 21600 21600 1200 1200 0 21600 7200 10800 | convert txt: h2.png &
129 build_greya enl_source.txt 4 21600 21600 1200 1200 0 21600 10800 14400 | convert txt: h3.png &
130 build_greya enl_source.txt 4 21600 21600 1200 1200 0 21600 14400 18000 | convert txt: h4.png &
131 build_greya enl_source.txt 4 21600 21600 1200 1200 0 21600 18000 21600 | convert txt: h5.png &
132
133 convert -limit memory 6000000000 -limit map 6000000000 h0.png h1.png h2.png h3.png h4.png h5.png -append $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp
134 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt
135
136
137
138
139
140
141
142
143 # need hologram in both places
144 ln $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/hologram.txt
145
146
147
148
149 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt
150 # note - alpha_hologram is adjusted as the extreme values of alpha make it more likely to see dots than randomness - this is weird because we do
151 # have uniform distribution - might be because I am using distance as a calculation. Anyways.
152
153
154
155
156
157 # eye color specific
158 # make templates
159 cd /t/enlightenment/.../build
160 export MAGICK_TMPDIR=/t/tmp
161
162 #Karl
163 export EYE_COLOR=green
164 export TOUNGE_COLOR=multi
165 export SEED=1618033
166 export POS=0
167 echo $SEED >seed.txt
168 # note - karl did not have the sort
169
170 #
171 export EYE_COLOR=pink
172 export EYE_COLOR2=$EYE_COLOR
173 export EYE_COLOR3=$EYE_COLOR
174 export TOUNGE_COLOR=multi
175 export SEED=69
176 export POS=0
177 echo $SEED >seed.txt
178
179
180 remove 354,
181 973 is tounge
182 327
183
184 cat $ENLIGHTENMENT_HOME/common/$EYE_COLOR.txt $ENLIGHTENMENT_HOME/common/$EYE_COLOR2.txt $ENLIGHTENMENT_HOME/common/$EYE_COLOR3.txt | sort -u >eyecolor$POS.txt
185 # pick the 1 tounge pixel colors
186 awk <$ENLIGHTENMENT_HOME/common/$TOUNGE_COLOR.txt '{print "'$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SAMPLE_SIZE/m/'" $1 }' | randomize $SEED | head -1 > tounge_choice$POS.txt
187 cat $ENLIGHTENMENT_HOME/common/$TOUNGE_COLOR.txt | randomize $SEED | head -1 > tounge_choicep$POS.txt
188
189 # in case the eye color is the same as the tounge colog - eliminate the choice from the eye choice
190 cat tounge_choicep$POS.txt | awk '{print "grep -v " $1 " <eyecolor$POS.txt >setez$POS.txt"}' | bash
191
192 # pick the 2 eye pixel colors
193 awk <setez$POS.txt '{print "'$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SAMPLE_SIZE/m/'" $1 }' |
194 randomize $SEED | head -2 > eye_choice$POS.txt
195
196 convert `head -1 eye_choice$POS.txt` -resize $ENLIGHTEMNENT_LEFT_S"x"$ENLIGHTEMNENT_LEFT_S lea$POS.png
197 composite -geometry +$ENLIGHTEMNENT_LEFT_X"+"$ENLIGHTEMNENT_LEFT_Y lea$POS.png `head -1 eye_choice$POS.txt` lefteye$POS.png
198 convert `tail -1 eye_choice$POS.txt` -resize $ENLIGHTEMNENT_LEFT_S"x"$ENLIGHTEMNENT_LEFT_S rta$POS.png
199 composite -geometry +$ENLIGHTEMNENT_RIGHT_X"+"$ENLIGHTEMNENT_RIGHT_Y rta$POS.png `tail -1 eye_choice$POS.txt` righteye$POS.png
200 convert `cat tounge_choice$POS.txt` -background none -virtual-pixel background +distort ScaleRotateTranslate -25 \
201 -resize $ENLIGHTEMNENT_LSD_S"x"$ENLIGHTEMNENT_LSD_S lsd$POS.png
202 composite -geometry +$ENLIGHTEMNENT_LSD_X"+"$ENLIGHTEMNENT_LSD_Y lsd$POS.png `cat tounge_choice$POS.txt` tongue$POS.png
203
204
205 # build the position by taking out the chosen eye colors, then randomizing the rest
206 ls $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SAMPLE_SIZE/m/*.bmp >set$POS.txt
207 cat eye_choice$POS.txt tounge_choice$POS.txt | awk '{print "grep -v " $1 " <set$POS.txt >sett$POS.txt;mv sett$POS.txt set$POS.txt"}' | bash
208 randomize $SEED <list.txt | head -1024 >sett$POS.txt
209 head -126 sett$POS.txt >set$POS.txt
210 #head -1 eye_choice$POS.txt >>set$POS.txt
211 echo lefteye$POS.png >>set$POS.txt
212 head -127 sett$POS.txt | tail -1 >>set$POS.txt
213 #tail -1 eye_choice$POS.txt >>set$POS.txt
214 echo righteye$POS.png >>set$POS.txt
215 tail -n+128 sett$POS.txt | head -28 >>set$POS.txt
216 #cat tounge_choice$POS.txt >>set$POS.txt
217 echo tongue$POS.png >>set$POS.txt
218 tail -n+156 sett$POS.txt | head -67 >>set$POS.txt
219 tail -n+223 sett$POS.txt | head -$ENLIGHTENMENT_CBRDR >settop$POS.txt
220 tail -n+255 sett$POS.txt | head -$ENLIGHTENMENT_CBRDR >setbottom$POS.txt
221 tail -n+287 sett$POS.txt | head -$ENLIGHTENMENT_RBRDR >setleft$POS.txt
222 tail -$ENLIGHTENMENT_RBRDR sett$POS.txt >setright$POS.txt
223
224 rm sett$POS.txt
225
226 {
227 rm 2>/dev/null >/dev/null p$POS.txt lsd$POS.png rta$POS.png lea$POS.png
228 mknod p$POS.txt p
229
230 ls $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/*.bmp >list.txt
231 montage -limit memory 6000000000 -limit map 6000000000 `cat list.txt \
232 | randomize $SEED | head -1024 ` \
233 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_COLUMNS"x"$ENLIGHTENMENT_ROWS p$POS".bmp"
234 bash analyze_fast_image.sh p$POS".bmp" >p$POS".txt"
235
236
237 randomify
238 $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt \
239 p$POS.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt \
240 | convert txt: holo_pixeled$POS"".png &
241
242 } &
243
244
245 export SEED=`expr $SEED + 1000000`
246 export POS=`expr $POS + 1`
247
248
249
250
251
252 # Qi she variant - to put image on left shoulder
253 # convert source/qi2.png -resize 1980x1980 source/qi_bigger.png
254 # me +170 set9.txt
255 # Change to
256 # /t/enlightenment/038_qi_she/source/qi_bigger.png
257
258
259
260 convert holo_pixeled0.png -resize '50%x50%' h0.png
261 convert holo_pixeled1.png -resize '50%x50%' h1.png
262 convert holo_pixeled2.png -resize '50%x50%' h2.png
263 convert holo_pixeled3.png -resize '50%x50%' h3.png
264 convert holo_pixeled4.png -resize '50%x50%' h4.png
265 convert holo_pixeled5.png -resize '50%x50%' h5.png
266 convert holo_pixeled6.png -resize '50%x50%' h6.png
267 convert holo_pixeled7.png -resize '50%x50%' h7.png
268 convert holo_pixeled8.png -resize '50%x50%' h8.png
269 convert holo_pixeled9.png -resize '50%x50%' h9.png
270
271 convert holo_pixeled10.png -resize '50%x50%' h10.png
272 convert holo_pixeled11.png -resize '50%x50%' h11.png
273 convert holo_pixeled12.png -resize '50%x50%' h12.png
274 convert holo_pixeled13.png -resize '50%x50%' h13.png
275 convert holo_pixeled14.png -resize '50%x50%' h14.png
276 convert holo_pixeled15.png -resize '50%x50%' h15.png
277 convert holo_pixeled16.png -resize '50%x50%' h16.png
278 convert holo_pixeled17.png -resize '50%x50%' h17.png
279 convert holo_pixeled18.png -resize '50%x50%' h18.png
280 convert holo_pixeled19.png -resize '50%x50%' h19.png
281 convert holo_pixeled20.png -resize '50%x50%' h20.png
282
283
284
285
286
287 convert holo_pixeled0.png -resize '25%x25%' h0.png
288 convert holo_pixeled1.png -resize '25%x25%' h1.png
289 convert holo_pixeled2.png -resize '25%x25%' h2.png
290 convert holo_pixeled3.png -resize '25%x25%' h3.png
291 convert holo_pixeled4.png -resize '25%x25%' h4.png
292 convert holo_pixeled5.png -resize '25%x25%' h5.png
293 convert holo_pixeled6.png -resize '25%x25%' h6.png
294 convert holo_pixeled7.png -resize '25%x25%' h7.png
295 convert holo_pixeled8.png -resize '25%x25%' h8.png
296 convert holo_pixeled9.png -resize '25%x25%' h9.png
297
298 convert holo_pixeled10.png -resize '25%x25%' h10.png
299 convert holo_pixeled11.png -resize '25%x25%' h11.png
300 convert holo_pixeled12.png -resize '25%x25%' h12.png
301 convert holo_pixeled13.png -resize '25%x25%' h13.png
302 convert holo_pixeled14.png -resize '25%x25%' h14.png
303 convert holo_pixeled15.png -resize '25%x25%' h15.png
304 convert holo_pixeled16.png -resize '25%x25%' h16.png
305 convert holo_pixeled17.png -resize '25%x25%' h17.png
306 convert holo_pixeled18.png -resize '25%x25%' h18.png
307 convert holo_pixeled19.png -resize '25%x25%' h19.png
308 convert holo_pixeled20.png -resize '25%x25%' h20.png
309
310 scp -P 26 h[0-9].png h1[0-9].png hib@kcd.com:
311
312 # FINAL
313 # then the final - set the size to be the big final size and
314 #export SEED=`expr $SEED + ?000000`
315 #export POS=?
316
317
318
319
320
321
322
323 #Then edit font_bottom.sh to add the bottom text
324
325
326
327
328
329
330 # signing it
331 {
332 echo >title.txt '
333 Document of title.
334
335 This document certifies that the digital piece "Enlightenment First Edition 42/69 created as of 1/3/2014
336 is authentic.
337
338 Here is the documentation that describes this digital artwork:
339
340
341
342 '
343
344
345 echo "identity" `/usr/local/bin/identity_of_file *.png` >>title.txt
346
347 gpg --print-md '*' *.png >>title.txt
348 }
349 unix2dos <title.txt >t2.txt
350 mv t2.txt title.txt
351
352 #As user chamelion:
353 gpg --export -a chamelion >chamelion.key
354 gpg --detach-sign title.txt
355 gpg --detach-sign *.png
356
357
358
359
360
361
362
363
364
365
366
367 Mini:
368
369
370
371
372 # signing it
373 {
374 echo >title.txt '
375 Document of title.
376
377 This document certifies that the digital piece "Enlightenment Mini Edition Prototype 1/4 created as of 3/21/2012
378 is authentic.
379
380 This is a miniature edition of Enlightenment, an embellishment of Trevor Brown'\''s "Little Strange Dots"
381 This is one of the 4 prototypes for this edition run. 22x22 inches @ 1440 dpi.
382
383 Here is the documentation that describes this digital artwork:
384
385
386
387 '
388
389
390 echo "identity" `/usr/local/bin/identity_of_file *.png` >>title.txt
391
392 gpg --print-md '*' *.png >>title.txt
393 }
394 unix2dos <title.txt >t2.txt
395 mv t2.txt title.txt
396
397 #As user chamelion:
398 gpg --export -a chamelion >chamelion.key
399 gpg --detach-sign title.txt
400 gpg --detach-sign *.png
401
402
403
404
405
406
407
408
409
410
411
412 # Old school building of pix image and randomify:
413
414 montage -limit memory 6000000000 -limit map 6000000000 `cat set$POS.txt`\
415 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_COLMM"x"$ENLIGHTENMENT_ROWMM d$POS".png"
416 montage -limit memory 6000000000 -limit map 6000000000 `cat setleft$POS.txt`\
417 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile 1"x"$ENLIGHTENMENT_RBRDR e$POS".png"
418 convert -limit memory 6000000000 -limit map 6000000000 "e$POS".png -resize 50%x50% f$POS.png
419 montage -limit memory 6000000000 -limit map 6000000000 `cat setright$POS.txt`\
420 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile 1"x"$ENLIGHTENMENT_RBRDR g$POS".png"
421 convert -limit memory 6000000000 -limit map 6000000000 "g$POS".png -resize 50%x50% h$POS.png
422 convert -limit memory 6000000000 -limit map 6000000000 f$POS.png d$POS.png h$POS.png +append i$POS.png
423 rm d$POS.png e$POS.png f$POS.png g$POS.png h$POS.png
424 montage -limit memory 6000000000 -limit map 6000000000 `cat settop$POS.txt`\
425 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_CBRDR"x"1 j$POS".png"
426 convert -limit memory 6000000000 -limit map 6000000000 "j$POS".png -resize 50%x50% k$POS.png
427 montage -limit memory 6000000000 -limit map 6000000000 `cat setbottom$POS.txt`\
428 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_CBRDR"x"1 l$POS".png"
429 convert -limit memory 6000000000 -limit map 6000000000 "l$POS".png -resize 50%x50% m$POS.png
430 convert -limit memory 6000000000 -limit map 6000000000 k$POS.png i$POS.png m$POS.png -append p$POS.bmp
431 rm i$POS.png j$POS.png k$POS.png l$POS.png m$POS.png
432
433 bash analyze_fast_image.sh p$POS".bmp" >p$POS".txt"
434 #randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt \
435 # p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.txt | convert txt: pixeled.$POS.png
436 # or for hologram
437 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt \
438 p$POS.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/hologram.txt \
439 | convert txt: holo_pixeled$POS.png
440
441
442
443
444 # special - adding new images to the fray.
445 cd /b/art/2011/enlightenment/source_no_acid/common/newerpics/outbox/batch1
446 # make everything a png
447 mkdir png
448 mkdir other
449 mv *.png png
450
451 # make sure no spaces if filenames
452 ls | grep ' '
453 # should be no - rename if not
454 ls *.*.*
455 # should be no - rename if not
456
457 for i in $(ls *.jpg | awk -F "." '{print $1}'); do convert $i.jpg png/$i.png;mv $i.jpg other ; done
458 for i in $(ls *.JPG | awk -F "." '{print $1}'); do convert $i.JPG png/$i.png;mv $i.JPG other ; done
459 for i in $(ls *.jpeg | awk -F "." '{print $1}'); do convert $i.jpeg png/$i.png;mv $i.jpeg other ; done
460 for i in $(ls *.gif | awk -F "." '{print $1}'); do convert $i.gif png/$i.png;mv $i.gif other ; done
461 cd png
462 bash compute_all_averages.sh >../analysis_batch2.txt
463 for i in $(ls *.png); do ln $i ../../../../pics ; done
464
465 # neet to cpy analysis.txt so we know what to use it for and such
466
467 cp ../analysis_batch2.txt ../../../..
468 cd /b/art/2011/enlightenment/source_no_acid/common
469 cat >>analysis.txt analysis_batch2.txt
470
471 #??? compute the images for analysis
472 # assume other env vars are set
473 export MAGICK_TMPDIR=/t/tmp
474 export ENLIGHTENMENT_HOME=/t/enlightenment/source_no_acid
475
476 export ENLIGHTENMENT_SIZE=11200
477 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
478 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
479
480 export ENLIGHTENMENT_SIZE=16800
481 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
482 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
483
484 export ENLIGHTENMENT_SIZE=17280
485 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
486 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
487
488
489 export ENLIGHTENMENT_SIZE=2048
490 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
491 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
492
493 export ENLIGHTENMENT_SIZE=28000
494 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
495 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
496
497 export ENLIGHTENMENT_SIZE=31200
498 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
499 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
500
501 export ENLIGHTENMENT_SIZE=33600
502 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
503 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
504
505 export ENLIGHTENMENT_SIZE=4800
506 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
507 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis_batch2.txt $ENLIGHTENMENT_DOT 718 | bash multiproc.sh bash
508
509 # then add the new colors to the text fields
510 perl -e 'for ($i = 718;$i<1385;$i++) { print "g$i.bmp\n" } ' >list_batch2.txt
511 edit it for l1 l2 ???
512 awk <list_batch2.txt '{print $1, $2; if ($3 != "") print $1, $3; if ($4 != "") print $1, $4}' >l
513 mv l list_batch2.txt
514
515
516 # verify that there are no spelling mistakes
517 awk <list_batch2.txt '{print $2}' | sort -u
518
519
520
521 # add to the files
522 awk <list_batch2.txt '{print "echo >>" $2 ".txt " $1}' | bash
523
524
525
526

  ViewVC Help
Powered by ViewVC 1.1.5