CAD教程 行业资讯 3D模型下载 Pro/E教程 CAD书店 软件下载 联系我们
技术资料 CAD招聘 发布招聘 CAD问答 设计竞赛 CAD认证 北京CAD培训
视频教程 PS教程 CAD图纸 图书推荐 Solidworks教程 CAD培训 CAD软件商

 最新视频教程Pro/ENGINEER Wildfire2.0 工业设计实例视频教程 (全套免费在线学习)   AutoCAD视频教程每日更新
 
首页 > CAD在线问答 > matlab

关于MATLAB的翻译求助

2010-10-06 51自学网



Copyright 1993-2002 The MathWorks, Inc.% $Revision: 1.10 $ $Date: 2002/03/15 15:27:47 $% Algorithm reference: P. Soille, Morphological Image Analysis:% Principles and Applications, Springer, 1999, pp. 164-165.% Input-output specs% ------------------% IM: N-D, real, full matrix% any numeric or logical nonsparse type% if islogical(IM), treated as binary% empty ok% Infs ok% if logical, NaNs are ok and treated as 0s, otherwise% not allowed.%% CONN: connectivity%% IM2: Same class and size as IM[im,conn] = parse_inputs(varargin{:});conn = conn2array(conn);marker = im;% Now figure out which elements of the marker image are connected to the% outside, according to the connectivity definition.im2 = true(size(marker));im2 = padarray(im2, ones(1,ndims(im2)), 0, 'both');im2 = imerode(im2,conn);idx = cell(1,ndims(im2));for k = 1:ndims(im2) idx{k} = 2:(size(im2,k) - 1);endim2 = im2(idx{:});% Set all elements of the marker image that are not connected to the% outside to the lowest possible value.if islogical(marker) marker(im2) = false;else marker(im2) = -Inf;endim2 = imreconstruct(marker, im, conn);if islogical(im2) im2 = im & ~im2;else im2 = imsubtract(im,im2);end%%%%%% parse_inputs%%%function [im,conn] = parse_inputs(varargin)checknargin(1,2,nargin,mfilename);im = varargin{1};checkinput(im, {'numeric' 'logical'}, {'nonsparse' 'real'}, ... mfilename, 'IM', 1);if nargin < 2 conn = conndef(ndims(im),'maximal');else conn = varargin{2}; checkconn(conn,mfilename,'CONN',2);end% Skip NaN check here; it will be done by imreconstruct if input% is double.
今天中午就要交的试卷,交不了,就悲剧了啊·麻烦大大们帮帮忙啊!




 

 

MATLAB求帮助
如何用delphi调用matlab.m文件
我来回答 共有条 回答
用户名: 密码:
验证码: 匿名发表
| AutoCAD | Pro/E | UG | 3Dmax | catia | solidworks | maya | photoshop | 模具设计 | 有限元 | matlab | 计算机图形学 | 室内设计 |