Skip to content

Commit 785ad08

Browse files
committed
update histogram for uint16 images
1 parent 675c6f1 commit 785ad08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/@Image/histogram.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
imgSize = size(obj);
9797

9898
% compute intensity bounds, based either on type or on image data
99-
if isinteger(obj.Data)
99+
if isa(obj.Data, 'uint8')
100100
type = class(obj.Data);
101101
minimg = intmin(type);
102102
maximg = intmax(type);

0 commit comments

Comments
 (0)