Skip to content

Commit

Permalink
DRY up imagePyramid
Browse files Browse the repository at this point in the history
  • Loading branch information
sometimesfood committed Jun 19, 2011
1 parent bc29b03 commit 761ff05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spact.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
ctImage = censusTransformImage(image);
end

level0 = imagePyramid(ctImage, 0);
level1 = imagePyramid(ctImage, 1);
level2 = imagePyramid(ctImage, 2);
pyramid = { level1, level2 };
pyramid = { level0, level1, level2 };

nPactImages = 1 + 5 + 25;
nPactImages = length(level0) + length(level1) + length(level2);
pactImages = cell(1, nPactImages);
pactImages{1} = pact(ctImage, pcaLoadings, columnMeans, true);
imageNo = 2;

imageNo = 1;
for i=1:length(pyramid)
for j=1:length(pyramid{i})
pactImages{imageNo} = pact(pyramid{i}{j}, ...
Expand Down

0 comments on commit 761ff05

Please sign in to comment.