Skip to content

Commit

Permalink
Added bweuler in ZI
Browse files Browse the repository at this point in the history
  • Loading branch information
lmendo committed Dec 28, 2020
1 parent f9707fb commit 24a7a55
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
Binary file modified funDef.mat
Binary file not shown.
4 changes: 3 additions & 1 deletion funDef.txt
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ YI 3 4 3 4 1 1 1 true true true true str = {'distinct' 'sliding'}; rearrange ma
if isscalar(in{3}), in{3}(2) = numel(in{1})/in{3}; end
if prod(in{3})~=numel(in{1}), in{3} = round(in{3}*sqrt(numel(in{1})/prod(in{3}))); end
out{1} = col2im(in{:});
ZI 1 inf 2 3 1 inf 1 true true true true switch in{end} image processing functions Depending on numeric last input, calls an image processing function with the remaining inputs. $0$: \matlab+imfill+. If first input is logical or numerical it is converted to char. $1$: \matlab+bwlabeln+. $2$: \matlab+imdilate+. This function allows second input to be number $4$, $5$, $8$ or $9$, which is interpreted as the corresponding neighbourhood mask. $3$: \matlab+imerode+. This function allows second input to be number $4$, $5$, $8$ or $9$, which is interpreted as the corresponding neighbourhood mask.
ZI 1 inf 2 3 1 inf 1 true true true true switch in{end} image processing functions Depending on numeric last input, calls an image processing function with the remaining inputs. $0$: \matlab+imfill+. If first input is logical or numerical it is converted to char. $1$: \matlab+bwlabeln+. $2$: \matlab+imdilate+. This function allows second input to be number $4$, $5$, $8$ or $9$, which is interpreted as the corresponding neighbourhood mask. $3$: \matlab+imerode+. This function allows second input to be number $4$, $5$, $8$ or $9$, which is interpreted as the corresponding neighbourhood mask. $4$: \matlab+bweuler+.
case 0
if islogical(in{1}) || ischar(in{1}), in{1} = double(in{1}); end
[out{:}] = imfill(in{1:end-1});
Expand All @@ -910,6 +910,8 @@ ZI 1 inf 2 3 1 inf 1 true true true true switch in{end} image processing functi
mask = {NaN NaN NaN [false true false; true false true; false true false] [false true false; true true true; false true false] NaN NaN [true true true; true false true; true true true] [true true true; true true true; true true true]};
if isnumeric(in{2}), in(2) = mask(in{2}); end; clear mask
[out{:}] = imerode(in{1:end-1});
case 4
[out{:}] = bweuler(in{1:end-1});
otherwise
error('MATL:runtime', 'MATL run-time error: unrecognized last input');
end
Expand Down
Binary file modified help.mat
Binary file not shown.
Binary file modified spec/MATL_spec.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion spec/funDefTable/funDefTable.tex
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
\matl{I} & 0 & 0-- ($^\dagger$) & paste from clipboard I \\
\matl{XI} & 0-- (1) & 0 & copy to clipboard I \\
\matl{YI} & 3--4 (3 / 4) & 1 & \matlab+col2im+. Uses \matlab+'distinct'+ option by default. Second and third inputs may be scalars, and then they are interpreted as numbers of columns. Third input may be a two-vector with product less then the number of elements of first input, and then it is appropriately scaled. This function allows flag strings in fourth input to be replaced by numbers, as follows: 1: \matlab+'distinct'+, 2: \matlab+'sliding'+ \\
\matl{ZI} & 1-- (2 / 3) & 1-- (1) & Depending on numeric last input, calls an image processing function with the remaining inputs. $0$: \matlab+imfill+. If first input is logical or numerical it is converted to char. $1$: \matlab+bwlabeln+. $2$: \matlab+imdilate+. This function allows second input to be number $4$, $5$, $8$ or $9$, which is interpreted as the corresponding neighbourhood mask. $3$: \matlab+imerode+. This function allows second input to be number $4$, $5$, $8$ or $9$, which is interpreted as the corresponding neighbourhood mask. \\
\matl{ZI} & 1-- (2 / 3) & 1-- (1) & Depending on numeric last input, calls an image processing function with the remaining inputs. $0$: \matlab+imfill+. If first input is logical or numerical it is converted to char. $1$: \matlab+bwlabeln+. $2$: \matlab+imdilate+. This function allows second input to be number $4$, $5$, $8$ or $9$, which is interpreted as the corresponding neighbourhood mask. $3$: \matlab+imerode+. This function allows second input to be number $4$, $5$, $8$ or $9$, which is interpreted as the corresponding neighbourhood mask. $4$: \matlab+bweuler+. \\
\matl{J} & 0 & 0-- ($^\dagger$) & paste from clipboard J \\
\matl{XJ} & 0-- (1) & 0 & copy to clipboard J \\
\matl{K} & 0 & 0-- ($^\dagger$) & paste from clipboard K \\
Expand Down

0 comments on commit 24a7a55

Please sign in to comment.