Commit 4f1faf35 authored by Daniel Bourgault's avatar Daniel Bourgault
Browse files

Small changes made to g_stabilize.m

parent 5854a924
......@@ -111,6 +111,8 @@ im2 = imread(img_ref_fname);
% Convert into gray scale if not already a B/W image
if size(im2,3) ~= 1
im2_BW = g_rgb2gray(im2);
else
im2_BW = im2;
end
im2_BW_cooked = im2_BW;
......@@ -140,7 +142,6 @@ end
frames(2).im = im2_BW_cooked;
%% Some figures to make sure everything is ok
figure(1);
imagesc(im2_BW);
......@@ -219,6 +220,8 @@ for i = 1:N
% Convert into gray scale if not already a B/W image
if size(im1,3) ~= 1
im1_BW = g_rgb2gray(im1);
else
im1_BW = im1;
end
im1_BW_cooked = im1_BW;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment