Friday, September 26, 2008

[Work] shell scripts

for d in *.kernel; do ( cat fourier.stub.txt && cat $d ) > $d.txt; d
one


for t in re im; do for d in `seq 0 1 9`; do ~mfuchs/bin/genkernel --
w 32 --fourier $t $d --scale 0.1 | tee fourier-$t-$d.kernel; done; d
one

for t in re im; do for d in `seq 0 1 9`; do ~mfuchs/bin/genkernel --
w 32 --fourier $t $d --scale 0.03 | tee fourier-$t-$d.kernel; done;
done


perl -pi -e 's/fps_out: 100/fps_out: 50/g' *.kernel.txt

Thursday, September 25, 2008

[Work] latex graphics

put the graphics / figure where it belongs instead of the end of a paragraph

\begin{figure*}[]
\end{figure*}

not
\begin{figure*}[t]
\end{figure*}


not
\begin{figure*}[h]
\end{figure*}

Wednesday, September 17, 2008

[Work] linux utilities

seq 20 | head

echo 'set yrange [0:1]; plot "<~mfuchs/bin/genkernel --hat|tail -n +2"' | gnuplot -persist under bash ( cat filter-stub && ~mfuchs/bin/genkernel --w 5 --hat ) > combined.txt

Saturday, August 2, 2008

Saturday, July 26, 2008

[Reading] Edward Rolf Tufte

"At its heart, my work is about how to think clearly and deeply, using evidence, and all that has to pass through some presentation state."

[Reading] Reading Edward Rolf Tufte

Tufte is a specialist on information visualization and representation.
He successfully analyzes some famous historical cases in terms of information representation.

In an interview, Tufte told the stories about his first book, The Visual Display of Quantitative Information; his important steps to form his philosophy on writing books, and education.

He told the story about how Robert Merton, a great sociologist at Stanford University influenced his scholarship.

My scholarship changed in the 1970s while Iwas at the Center for
Advanced Study of the Behavioral Sciences at Stanford. Robert
Merton, the great sociologist, was also there. He taught me a great
deal about scholarship. It began when he looked over a manuscript
of what ultimately became my book on political economy, Political
Control of the Economy. Bob did a lot of editorial commenting and
was a wonderful editor and kind critic, one-on-one. Near a completely
undistinguished paragraph I had written, Bob wrote “an
echo of Veblen,” a distinguished social theorist. What this said to me
was not that the paragraph was good, but rather “Why don’t you try
playing in the big leagues?”—that is, to do work that might last for a
long time.
That thought has made an enormous difference to my work. It allowed
me to escape the scholarship of reprints and of last month’s
research journal. It transformed my sense of audience—I was not
writing for the dean or a few of my colleagues; I was writing for
something very different. It freed up my thinking to be able to have
ideas from 1610 and not just from 2004. Such a realization allowed
me to see much more of the world. It also sets a rather grand goal,
which is to try to do work that will last a long time.

Wednesday, May 14, 2008

[Work] about white balance

Yesterday afternoon, I was making mosaic from a set of images.
I had a big trouble with white balance.
I tried a lot of times. and was simply confident, since there are only to numbers to tune.

But I never reached the correct solution. All the results are either wierd or only a little bit near to my expectation.

I got more and more inpatient and nothing got better.
And finally I must leave my office.

On the way back to home, I got an idea: why not try the white balance on the big images, where we have the reference white paper.

Last night I tried the idea. I first found out the right magic numbers from the big images and then applied them to the cropped small images. But it didn't work at all. What's wrong with this scheme?

I thought there are something wrong with the cropping or the gamma correction.


This morning I corrected all these errors by working directly on the uncropped versions.
After making everything right, I cropped the result big images and got the smaller ones.



The lessons:
Keep the mind relaxed and open!
Find reference point for the white balance processing.