Friday, December 30, 2011

flying body parts


Dead man to be sued over flying body parts



Really.. what can be said here.

Saturday, December 17, 2011

Nearest Neghbor


In Defense of Nearest-Neighbor Based Image Classification:


My first Nearest Neighbor image classifier is working now... I can't say I'm particularly impressed with the results of my first attempt. I'm just converting to a standard image patch doing a normalized correlation. 

        for( int x=0;x<patch1.length;x++) {
            correlation += (double)patch1[x] * (double)patch2[x];
            norm1 += (double)patch1[x] * (double)patch1[x];
            norm2 += (double)patch2[x] * (double)patch2[x];
        }

        return( (((correlation / Math.sqrt(norm1*norm2)) + 1.0) / 2.0) );


So I'm going to give this paper a try...

Thursday, December 08, 2011

Odd

I'm always amazed what my keyboard muscle memory comes up with.
Today I was trying to type "must be" and my fingers typed "number".
Looking at the keyboard ...

(m/n) (u/u) s/m t/b ' '/e b/r e/

It must have been triggered by the first two characters + something in my brain thinking about numbers...

Tuesday, December 06, 2011

Nearest Neighbor with various tree structures (including VP tree)

Sunday, December 04, 2011

some useful stuff.

Might be useful:
VP trees.
http://stevehanov.ca/blog/index.php?id=130

Specifically Normalized Cross Correlation.
http://en.wikipedia.org/wiki/Cross-correlation