ind2nm.m
来自「matlab处理图像的一些基本方法。其中有一部分mex程序需要安装编译」· M 代码 · 共 29 行
M
29 行
function [nm1,nm2]=ind2nm(ind1,ind2)%IND2NM Converts the matrix indexes into coordinates (nm).%% NM=IND2NM(IND)%% INDs are the vector of the matrixes x-y indexes.% NMs are the vector of the indexes espressed in nm;%% See also NM2IND%% Claudio Apr 15, 1995%%% Copyright (c) 1995 by Claudio Rivetti and Mark Young% claudio@alice.uoregon.edu, mark@alice.uoregon.edu%global I Hss=scansize(H);xoff = xoffset(H);yoff = yoffset(H);px=size(I,1);nm1=ind1*ss/px+xoff - (ss/px)/2;nm2=ind2*ss/px+yoff - (ss/px)/2;return;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?