nm2ind.m
来自「matlab处理图像的一些基本方法。其中有一部分mex程序需要安装编译」· M 代码 · 共 30 行
M
30 行
function [ind1,ind2]=nm2ind(nm1,nm2)%NM2IND - Converts the matrix indexes into coordinates (nm).%% [IND1,IND2]=NM2IND(NM1,NM2)%% NMs are the vectors of the x-y indexes espressed in nm;% INDs are the vector of the x-y matrixes indexes.%% See also IND2NM%% 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);ind1=ceil((nm1-xoff)*px/ss);ind2=ceil((nm2-yoff)*px/ss);return
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?