I am Charmie

メモとログ

2011-10-01から1ヶ月間の記事一覧

im2col and col2im

Function im2col formats image blocks to columns and col2im does the inverse operation. When you independently apply some operation on each image patches and then merge the patches, these functions are useful. The code is like img = im2doub…

levmar with Visual Studio 2010

levmarのコンパイルには2つのステップが必要: LAPACKのインストールとlevmarのコンパイル.LAPACKではなくCLAPACKを使ってlevmarを使ってみる(LAPACKを自前でセットアップするにはfortranのコンパイラやら何やらが必要みたいだけど,調べてて頭が痛くなって…

Using levmar with Visual Studio 2010

levmar compilation requires two steps: LAPACK installation and levmar compilation. Here, I use CLAPACK instead of LAPACK for ease of setup but any types of CLAPACK might be fine. CLAPACK installation There are several options to build CLAP…

Normalize the columns/rows of a given matrix

A = randn(m, n); % for columns A = A ./ repmat(sqrt(sum(A.^2, 1)),m,1); % for rows A = A ./ repmat(sqrt(sum(A.^2, 2)),1,n);