Skip to content

Commit 072abc6

Browse files
committed
regionElementCounts.m: fix shape of output for 2D images
1 parent bc2a843 commit 072abc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/@Image/regionElementCounts.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
% rely on regionprops for speed
3333
if size(obj.Data, 3) == 1
3434
props = regionprops(obj.Data, 'Area');
35-
counts = [props.Area];
35+
counts = [props.Area]';
3636
counts = counts(labels);
3737
else
3838
props = regionprops3(obj.Data, 'Volume');

0 commit comments

Comments
 (0)