Commit 821e679e53a56c04357b5c692a604f0b719d6375

Authored by Daniel Bourgault
1 parent 5da9ec7c
Exists in master

Very minor change made.

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
src/g_rect/g_geotiff.m
... ... @@ -67,7 +67,10 @@ for i = 1:N_img
67 67 img = imread(img_fname(i).name);
68 68  
69 69 % Convert to gray scale
70   - img = rgb2gray(img);
  70 + [m n p] = size(img);
  71 + if p > 1
  72 + img = rgb2gray(img);
  73 + end
71 74 img = double(img);
72 75 img = img';
73 76  
... ...