Skip to main content
. Author manuscript; available in PMC: 2016 Jan 15.
Published in final edited form as: Neuroimage. 2014 Nov 1;105:156–170. doi: 10.1016/j.neuroimage.2014.10.052

Algorithm 2.

Algorithm for generating rotation-invariant patch-based description of image.

Input: patch neighborhood operator Inline graphic(xn), input image I, rotation-invariant dictionary W from Algorithm 1.
N ← number of voxels in I.
p ← number of voxels in Inline graphic(xn).
Initialize P ← [ ] N × p patch matrix for every pixel in image.
for i = 0,...,N −1 do
t ← vector representation of {xj : xjInline graphic(xi)}.
tt − mean(t).
 Reorient t to W1.
P ← [P t]. ▷ Concatenate patches.
end for
FPW ▷ Project patches of input image onto eigenvectors.
Output: F. ▷ Matrix with response of each image voxel to each eigenpatch.