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

Contents of /eyes/kristie.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations)
Sat Nov 12 21:31:09 2011 UTC (6 years, 5 months ago) by hib
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +232 -3 lines
File MIME type: text/plain
I think I got kristie working
1
2
3
4 Tilify is the new creation - and it needs work, but it is pretty cool
5 looks like painting.
6
7
8
9
10 tilify 540 720 40 1 source.txt | convert txt: wow1.png &
11 tilify 540 720 40 2 source.txt | convert txt: wow2.png &
12 tilify 540 720 40 3 source.txt | convert txt: wow3.png &
13 tilify 540 720 40 4 source.txt | convert txt: wow4.png &
14 tilify 540 720 40 5 source.txt | convert txt: wow5.png &
15 tilify 540 720 40 6 source.txt | convert txt: wow6.png &
16 tilify 540 720 40 7 source.txt | convert txt: wow7.png &
17 tilify 540 720 40 8 source.txt | convert txt: wow8.png &
18 tilify 540 720 40 9 source.txt | convert txt: wow9.png &
19
20 8 looks the best.
21
22
23 OK - got it to look pretty neat. But I need more space.
24 So I used gimp to make source4x.png
25
26
27 bash analyze_source_image.sh source4x.png >source4x.txt
28 time tilify 2160 2880 40 8 source4x.txt | convert txt: tilify8.png
29 time tilify 2160 2880 40 9 source4x.txt | convert txt: tilify9.png
30 time tilify 2160 2880 40 10 source4x.txt | convert txt: tilify10.png
31
32
33 10 failed - but 9 worked. We will use 9.
34
35 holo_design.bmp - white lines to be converted into hologram points.
36 probably use red - deep red for holographic properties.
37
38 convert holo_design.bmp holo_design.txt
39 head -1 holo_design.txt >holo_extract.txt
40 grep '#FFFFFF' holo_design.txt >>holo_extract.txt
41 convert -background black holo_extract.txt holo_extract.bmp
42 then touch up.
43
44
45 # Now we defined #SCALE in tilify - so it will scale to 63360x84480 - 1440 dpi big one!
46
47 time tilify 2160 2880 40 9 source4x.txt | tee tilify_monster_flat.txt |
48 convert -limit memory 5000000000 -limit map 5000000000 txt: tilify_monster_prep.png
49
50 time analyze_source_image_filter <tilify_monster_flat.txt >tilify_monster_flat2.txt
51
52
53
54
55
56 failed 9 levels down x 50823 y 309
57 UL 50717,0 50834,0
58 50629,117 50717,146
59 UR 50834,0 50981,0
60 50717,146 50864,175
61 LL 50629,117 50717,146
62 50541,263 50658,322
63 LR 50717,146 50864,175
64 50658,322 50776,381
65 SS 50717,0 50981,0
66 50541,263 50776,381
67
68
69 failed 8 levels down x 39006 y 0
70 UL 38602,0 38837,0
71 38309,351 38690,234
72 UR 38837,0 39101,0
73 38690,234 38661,410
74 LL 38309,351 38690,234
75 38016,703 38133,762
76 LR 38690,234 38661,410
77 38133,762 38250,849
78 SS 38602,0 39101,0
79 38016,703 38250,849
80
81
82
83 OK - so we hybrided it. The original color feeler, flawed that it is, has the magic that makes a painting effect.
84 The modern inside polygon script is much more accurate, but does not have tha magic.
85 In tilify, we use the first alg to pick the squares, and the second one to fill them.
86
87
88 Now for the depts - depth_estimate1.png was a rough cut of the depth queues in the picture - this is useful for laying out the
89 depth in the hologram lines. Now to fill in the mistakes, I will write a program.
90
91 analyze_source_image.sh depth_estimate1.png | clean_up_alpha 2160 2880 433 | convert txt: depth_estimate2.png
92
93
94 Then guassian blur of 50
95
96 /* 433 is the random seed */
97
98 And then we use if for the face_alpha:
99 analyze_source_image.sh face_alpha1.png | clean_up_alpha 2160 2880 438 | convert txt: face_alpha2.png
100 a point gaussian blur to face_alpha3
101
102 /& Then modified the randomify code so that 0 or 255 will not get random junk
103
104 a.png -> source4x.png -(tilify) tilify9.png (example)
105 - (tilify scale) tilify_monster_flat.*
106
107
108
109 tilify9.png -> depth_estimate1 -> clean_up_alpha -> depth_estiamte2 -> blue(50) ->depth_estimate3
110
111
112 tilify9.png -> holo_design.png
113
114
115 source4x ->face_alpha1.png -> (clean_up_alpha) face_alpha2.png -> blue(7) -> face_alpha3.png
116
117 source4x -> cleaned_face_and_skull.png
118
119 depth_estimate3 + holo_extract -> (build_kristie_eye_source.pl) > eye_souce.txt
120
121
122 clean_face_and_skull.txt \
123 tilify_monster_flat2.txt -> (randomify) tilified_awaiting_hologram
124 tilify_face_alpha.txt /
125
126 tilified_awaiting_hologram \
127 v/test.png -> final.png
128
129
130
131
132 time convert -limit memory 5000000000 -limit map 5000000000 \
133 face_alpha3.png -depth 8 -resize 63360x84480! txt: | analyze_source_image_filter >tilify_face_alpha.txt
134
135 time convert -limit memory 5000000000 -limit map 5000000000 cleaned_face_and_skull.png \
136 -depth 8 -resize 63360x84480! txt: | analyze_source_image_filter >clean_face_and_skull.txt
137
138 analyze_source_image.sh depth_estimate3.png >depth_estimate3.txt
139 analyze_source_image.sh holo_extract.bmp >holo_extract2.txt
140 perl $e/build_kristie_eye_source.pl > eye_source.txt
141 (48860 pixels)
142
143
144 mknod tilified_awaiting_hologram.txt p
145 time analyze_source_image_filter <tilified_awaiting_hologram.txt >tilified_awaiting_hologram2.txt &
146 time randomify 63360 84480 672118 clean_face_and_skull.txt tilify_monster_flat2.txt tilify_face_alpha.txt | tee tilified_awaiting_hologram.txt |
147 convert -limit memory 13000000000 -limit map 13000000000 txt: tilified_awaiting_hologram.png
148
149
150
151 mkdir u
152
153
154 perl $e/kristie_blocks.pl >m1
155 flip_flop <m1 >o1 2>o2 3>o3 4>o4 5>o5 6>o6 6
156 time bash o1 &
157 time bash o2 &
158 time bash o3 &
159 time bash o4 &
160 time bash o5 &
161 time bash o6 &
162 wait
163
164
165
166
167 Well, that took too long - so here is the output:
168 6.8
169 min -5.272813 max 5.720623
170 128 -0.000000
171 128 -0.000000
172 64 -0.104182
173 64 -0.104731
174 32 -0.219718
175 32 -0.218865
176 16 -0.364580
177 16 -0.365806
178 8 -0.534338
179 8 -0.532777
180 4 -0.718439
181 4 -0.720263
182 2 -0.916773
183 2 -0.918883
184 1 -1.125204
185 1 -1.127571
186 0 -5.272812
187
188
189
190 So we will estimate:
191 find_grey_range real u/*018.fp >tfull.grey &
192 find_grey_range imaginary u/*018.fp >tifull.grey &
193
194
195
196
197
198
199 ls u/*.fp | awk '{print "fp_to_txt trinary 1440 1440 tfull.grey " $1 " | convert txt: " $1 ".png"}' >n
200 flip_flop <n >o1 2>o2 3>o3 4>o4 5>o5 6>o6 6
201 time bash o1 &
202 time bash o2 &
203 time bash o3 &
204 time bash o4 &
205 time bash o5 &
206 time bash o6 &
207 wait
208
209
210 time montage -limit memory 5000000000 -limit map 5000000000 u/es_000_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_000.png
211 time montage -limit memory 5000000000 -limit map 5000000000 u/es_001_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_001.png
212 time montage -limit memory 5000000000 -limit map 5000000000 u/es_002_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_002.png
213 time montage -limit memory 5000000000 -limit map 5000000000 u/es_003_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_003.png
214 time montage -limit memory 5000000000 -limit map 5000000000 u/es_004_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_004.png
215 time montage -limit memory 5000000000 -limit map 5000000000 u/es_005_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_005.png
216 time montage -limit memory 5000000000 -limit map 5000000000 u/es_006_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_006.png
217 time montage -limit memory 5000000000 -limit map 5000000000 u/es_007_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_007.png
218 time montage -limit memory 5000000000 -limit map 5000000000 u/es_008_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_008.png
219 time montage -limit memory 5000000000 -limit map 5000000000 u/es_009_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_009.png
220
221
222 time montage -limit memory 5000000000 -limit map 5000000000 u/es_010_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_010.png
223 time montage -limit memory 5000000000 -limit map 5000000000 u/es_011_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_011.png
224 time montage -limit memory 5000000000 -limit map 5000000000 u/es_012_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_012.png
225 time montage -limit memory 5000000000 -limit map 5000000000 u/es_013_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_013.png
226 time montage -limit memory 5000000000 -limit map 5000000000 u/es_014_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_014.png
227 time montage -limit memory 5000000000 -limit map 5000000000 u/es_015_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_015.png
228 time montage -limit memory 5000000000 -limit map 5000000000 u/es_016_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_016.png
229 time montage -limit memory 5000000000 -limit map 5000000000 u/es_017_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_017.png
230 time montage -limit memory 5000000000 -limit map 5000000000 u/es_018_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_018.png
231 time montage -limit memory 5000000000 -limit map 5000000000 u/es_019_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_019.png
232
233 time montage -limit memory 5000000000 -limit map 5000000000 u/es_020_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_020.png
234 time montage -limit memory 5000000000 -limit map 5000000000 u/es_021_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_021.png
235 time montage -limit memory 5000000000 -limit map 5000000000 u/es_022_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_022.png
236 time montage -limit memory 5000000000 -limit map 5000000000 u/es_023_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_023.png
237 time montage -limit memory 5000000000 -limit map 5000000000 u/es_024_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_024.png
238 time montage -limit memory 5000000000 -limit map 5000000000 u/es_025_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_025.png
239 time montage -limit memory 5000000000 -limit map 5000000000 u/es_026_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_026.png
240 time montage -limit memory 5000000000 -limit map 5000000000 u/es_027_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_027.png
241 time montage -limit memory 5000000000 -limit map 5000000000 u/es_028_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_028.png
242 time montage -limit memory 5000000000 -limit map 5000000000 u/es_029_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_029.png
243 time montage -limit memory 5000000000 -limit map 5000000000 u/es_030_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_030.png
244 time montage -limit memory 5000000000 -limit map 5000000000 u/es_031_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_031.png
245 time montage -limit memory 5000000000 -limit map 5000000000 u/es_032_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_032.png
246 time montage -limit memory 5000000000 -limit map 5000000000 u/es_033_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_033.png
247 time montage -limit memory 5000000000 -limit map 5000000000 u/es_034_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_034.png
248 time montage -limit memory 5000000000 -limit map 5000000000 u/es_035_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_035.png
249 time montage -limit memory 5000000000 -limit map 5000000000 u/es_036_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_036.png
250 time montage -limit memory 5000000000 -limit map 5000000000 u/es_037_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_037.png
251 time montage -limit memory 5000000000 -limit map 5000000000 u/es_038_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_038.png
252 time montage -limit memory 5000000000 -limit map 5000000000 u/es_039_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_039.png
253 time montage -limit memory 5000000000 -limit map 5000000000 u/es_040_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_040.png
254 time montage -limit memory 5000000000 -limit map 5000000000 u/es_041_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_041.png
255 time montage -limit memory 5000000000 -limit map 5000000000 u/es_042_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_042.png
256 time montage -limit memory 5000000000 -limit map 5000000000 u/es_043_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_043.png
257 time montage -limit memory 5000000000 -limit map 5000000000 u/es_044_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_044.png
258 time montage -limit memory 5000000000 -limit map 5000000000 u/es_045_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_045.png
259 time montage -limit memory 5000000000 -limit map 5000000000 u/es_046_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_046.png
260 time montage -limit memory 5000000000 -limit map 5000000000 u/es_047_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_047.png
261 time montage -limit memory 5000000000 -limit map 5000000000 u/es_048_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_048.png
262 time montage -limit memory 5000000000 -limit map 5000000000 u/es_049_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_049.png
263 time montage -limit memory 5000000000 -limit map 5000000000 u/es_050_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_050.png
264 time montage -limit memory 5000000000 -limit map 5000000000 u/es_051_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_051.png
265 time montage -limit memory 5000000000 -limit map 5000000000 u/es_052_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_052.png
266 time montage -limit memory 5000000000 -limit map 5000000000 u/es_053_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_053.png
267 time montage -limit memory 5000000000 -limit map 5000000000 u/es_054_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_054.png
268 time montage -limit memory 5000000000 -limit map 5000000000 u/es_055_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_055.png
269 time montage -limit memory 5000000000 -limit map 5000000000 u/es_056_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_056.png
270 time montage -limit memory 5000000000 -limit map 5000000000 u/es_057_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_057.png
271 time montage -limit memory 5000000000 -limit map 5000000000 u/es_058_*.png -geometry 1440x1440+0+0 -tile 44x1 v/es_058.png
272
273
274 time montage -limit memory 12000000000 -limit map 12000000000 v/*.png -geometry 63360x1440+0+0 -tile 1x59 v/test.png
275
276
277 mknod hologram.txt p
278 convert -limit memory 1000000000 -limit map 1000000000 v/test.png -depth 8 txt: | analyze_source_image_filter 63380 84480 >hologram.txt &
279
280 time hologram_over_picture | convert -limit memory 5000000000 -limit map 5000000000 txt: final.png

  ViewVC Help
Powered by ViewVC 1.1.5