Skip to content

Commit 7944f29

Browse files
Revert change to lookup table dimensions
1 parent 08401be commit 7944f29

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/formats-bsd/matlab/bfopen.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,11 @@
155155
arr = bfGetPlane(r, i, varargin{:});
156156

157157
% retrieve color map data
158+
% transpose tables for compatibility with things like imshow
158159
if bpp == 1
159-
colorMaps{i} = r.get8BitLookupTable();
160+
colorMaps{i} = r.get8BitLookupTable()';
160161
else
161-
colorMaps{i} = r.get16BitLookupTable();
162+
colorMaps{i} = r.get16BitLookupTable()';
162163
end
163164

164165
warning_state = warning ('off');

0 commit comments

Comments
 (0)