Skip to content

Commit

Permalink
ZI: image processing functions
Browse files Browse the repository at this point in the history
For now it includes `imfill` and `bwlabeln`
  • Loading branch information
lmendo committed Apr 13, 2017
1 parent c707245 commit a3fde63
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 16 deletions.
Binary file modified funDef.mat
Binary file not shown.
10 changes: 9 additions & 1 deletion funDef.txt
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,15 @@ 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
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+.
case 0
if islogical(in{1}) || ischar(in{1}), in{1} = double(in{1}); end
[out{:}] = imfill(in{1:end-1});
case 1
[out{:}] = bwlabeln(in{1:end-1});
otherwise
error('MATL:runtime', 'MATL run-time error: unrecognized last input');
end
J 0 0 0 0 inf numel(CB_J) true true false true out = CB_J(1:nout); paste from clipboard J paste from clipboard J
XJ 0 inf 1 0 0 0 false true false true CB_J = in; copy to clipboard J copy to clipboard J
YJ
Expand Down
Binary file modified help.mat
Binary file not shown.
Binary file modified spec/MATL_spec.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions spec/funDefTable/funDefTable.tex
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,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+. \\
\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
Binary file modified spec/functionTable/MATL.xlsx
Binary file not shown.
32 changes: 17 additions & 15 deletions spec/functionTable/function_table.eps

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified spec/functionTable/function_table.pdf
Binary file not shown.

0 comments on commit a3fde63

Please sign in to comment.