Skip to content

Commit d70a42e

Browse files
committed
killBorders: fix default connectivity for 3D images
1 parent 8f83964 commit d70a42e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/@Image/killBorders.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818

1919
% ------
2020
% Author: David Legland
21-
% e-mail: david.legland@inra.fr
21+
% e-mail: david.legland@inrae.fr
2222
% Created: 2011-09-11, using Matlab 7.9.0.529 (R2009b)
2323
% Copyright 2011 INRA - Cepia Software Platform.
2424

25-
% choose default connectivity
25+
% choose default connectivity depending on dimension
2626
conn = 4;
2727
if ndims(obj) == 3
28-
conn = 8;
28+
conn = 6;
2929
end
3030

3131
% case of connectivity specified by user

0 commit comments

Comments
 (0)