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

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);
......@@ -205,7 +206,7 @@ for i = 1:N
im1 = imread([pathstr,'/',all_img(i).name]);
im_info = imfinfo([pathstr,'/',all_img(i).name]);
end
if i == 1
display([' Processing image: ',all_img(i).name]);
display([' Time remaining: Yet undetermined. Please wait until next image.']);
......@@ -219,10 +220,12 @@ 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;
% May equalize with this equalizer.
if equalize
im1_BW_cooked = clahs(im1_BW_cooked,nry,nrx);
......@@ -240,7 +243,7 @@ for i = 1:N
end
frames(1).im = im1_BW_cooked;
[motion,stable] = g_videostabilize(frames,roi,L);
% Warp the original image and not the image that has been manipulated
......
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