Skip to content

Commit 452f3a9

Browse files
committed
Fix comments / typos
1 parent 5b7edb8 commit 452f3a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmap_picker.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@
4545
% Select colorbar from it
4646
imshow(image)
4747
rect = drawrectangle().Position;
48-
4948
captured_cbar = imcrop(image, rect);
50-
[h, w, ~] = size(captured_cbar);
5149

50+
% Chose orientation along the largest dimension of rectangle
51+
[h, w, ~] = size(captured_cbar);
5252
if h >= w
5353
cmap = flipud(squeeze(mean(captured_cbar, 2))) / 256;
5454
else
5555
cmap = squeeze(mean(captured_cbar, 1)) / 256;
5656
end
5757

58-
% show it to be sure ti worked
58+
% Show the colormap in a colorbar to check it worked
5959
colormap(cmap)
6060
colorbar()
6161

0 commit comments

Comments
 (0)