somewhere near the beginning.

Submatrix location

Filed under: General, Programming — Alex @ 2:22 pm 1/7/2008

My officemate asked me a Matlab question that’s worthy of consideration: what is a fast method for locating a submatrix within a matrix? In his case, we were dealing with two dimensional matrices, but to make it more challenging, attempt it with matrices of arbitrary dimension.

Some history: I coded a solution to this problem during my undergraduate research, to use in registering biomedical volumes. When I started working on the project, there were some reference subvolumes that had been extracted from various volumes, and exactly where they’d been extracted from had been lost. The data sets were relatively large, so the code had to be fast … too bad I can’t recall my solution off the top of my head.

It’d be intereresting to compare the performance of various solutions. I’ll try to recreate mine.

Possibly relevant posts:

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment