Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Bourgault
g_rect
Commits
4f1faf35
Commit
4f1faf35
authored
May 08, 2019
by
Daniel Bourgault
Browse files
Small changes made to g_stabilize.m
parent
5854a924
Changes
1
Show whitespace changes
Inline
Side-by-side
src/g_stabilize/g_stabilize.m
View file @
4f1faf35
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment