资源简介
MATLAB源代码 实现图像配准校正 registration
代码片段和文件信息
function varargout=spm_XYZreg_Ex2(varargin)
% Example of Registry enabled XYZ GUI control / function
% FORMAT...
%_______________________________________________________________________
%
% Help goes here...
%
% object must be indentifiable via a unique HandleGraphics object.
% In this code this handle is called hMe.
%
% This HandleGraphics objects ‘UserData‘ *must* be a structure.
% The structure must have a field called ‘hReg‘ which stores the handle
% of the registry when linked and is empty when not. Some utility features
% of spm_XYZreg will set/delete the handle directly...
%
% There must be a ‘SetCoords‘ function for this object with call:
% spm_res_ui(‘SetCoords‘xyzhMehC)
% ...this can handle interna co-ordinate setting (as in this example) but
% must also call the registry.
%
% The registry update function is:
% spm_XYZreg(‘SetCoords‘xyzhReghMe);
% ...which must be called at all points where the local co-ordinates can be
% changed. It is robust to invalid or empty hReg.
%
% It‘s *vital* to specify caller handles (hC) so that the registry doesn‘t
% end up in an infinite loop of updating!
%
% Hey if your function has multiple places where you can change the XYZ
% you could use an ‘‘internal‘‘ registry locally with the external registry
% as one of it‘s entries! (I think?)
%
%_______________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
% Andrew Holmes
% $Id: spm_XYZreg_Ex2.m 1143 2008-02-07 19:33:33Z spm $
%=======================================================================
switch lower(varargin{1}) case ‘create‘
%=======================================================================
% hMe = spm_XYZreg_Ex2(‘Create‘MDxyz)
if nargin<4 xyz=[0;0;0]; else xyz=varargin{4}; end
if nargin<3 error(‘Insufficient arguments‘) end
D = varargin{3};
M = varargin{2};
xyz = spm_XYZreg(‘RoundCoords‘xyzMD);
F = figure;
%-Create control:
% - note the UserData structure: hReg is necessary for cross-registration
% M D & xyz are used internally...
% - note how the DeleteFcn closes the objects figu
相关资源
- hough变换提取直线(Matlab实现)
- 基于matlab的直接序列扩频仿真
- 基于MATLAB的QPSK在瑞利、高斯和莱斯信
- 矩阵位移法_MATLAB程序
- MATLAB生成DEM 代码3
- 基于Matlab的3DMIMO信道空间相关性仿真
- 自适应卡尔曼滤波,MATLAB
- 超全图论matlab程序
- matlab视频处理代码
- 位移、速度、加速度信号互转
- Matlab 雷克子波和傅里叶变换Ricker Wa
- Matlab插补法
- JPEG图像压缩编码及其MATLAB仿真实现
- flooding算法的matlab仿真代码
- 聚类评价指标 MATLAB 实现
- MIMO-OFDM无线通信matlab代码
- DCT数字水印实现
- 实现图像中道路区域的分割与提取
- 自适应matlab程序
- 基于区域生长法的图像分割matlab程序
- dea的matlab程序
- snake和GVFsnake主动轮廓Matlab程序
- 决策树算法matlab
- 风力发电模型在MATLAB中的模型建立
- 多脉波自耦变压器的MATLAB模型
- 《粒子滤波原理及Matlab应用 》程序代
- 卷积编码的matlab程序
- Funval.m函数精通Matlab最优化计算
- 机器人控制仿真程序matlab
- IEEE33节点matlab潮流程序
评论
共有 条评论