06
Apr/11
q1
It really looks like I cannot stay doing nothing.
I grabbed the script I use to download my posts for the Everyday app and changed it a bit so I could download plenty of other people pictures.
416 to be precise.
I averaged all of them and this is the result:

average you
Cool, isn’t it? It’s a sort of daily ghost :þ
If you fancy to give it a try here is the script I used to fetch the images:
-
<?php
-
-
$numpages=10;
-
$maxresults=100;
-
$baselink="http://search.twitter.com/search.json";
-
$query="?q=@everydayapp&result_type=recent&rpp=$maxresults";
-
-
for ($i=0; $i<$numpages; $i++) {
-
-
foreach ($results->results as $kk=>$result) {
-
$hash=$matches[1];
-
-
if ($hash) {
-
$link=$xmlInfo->links->image_link;
-
-
$filename=$filename[3];
-
}
-
-
echo "P:$i R:$kk H:$hash\n";
-
}
-
$query=$results->next_page;
-
}
-
?>
and here is the console commands I used to calculate the average above and the standard deviation below:
-
convert samples/* -average average.jpg
-
for i in `ls samples`; do composite average.jpg samples/$i -compose difference diff/$i; done
-
for i in `ls diff`; do composite diff/$i diff/$i -compose multiply mult/$i; done
-
convert mult/* -average sd.jpg

standard deviation
The original SD image was quite dark so I normalised its histogram a bit with the GIMP.
One comment
-
grazia2011-05-06 18:17:17



































































