⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getview.m

📁 matlab处理图像的一些基本方法。其中有一部分mex程序需要安装编译
💻 M
字号:
function [M, coord]=getview(c)%	GETVIEW - returns the image submatrix corresponding to the current view.%%	[M, COORD] = GETVIEW(C)%%		inputs:%			C - the current view, a vector of [xmin xmax ymin ymax].%		outputs:%			M - 	the returned submatrix of I, the image matrix%			COORD - the returned  current view.%%	Claudio  spring of 1995%% Copyright (c) 1995 by Claudio Rivetti and Mark Young% claudio@alice.uoregon.edu,    mark@alice.uoregon.edu%global I H Handleimgaxif nargin==0 c=[];endif isempty(c)  axes(Handleimgax);  c=axis;  ss=scansize(H);  sl=size(I,1);  xoff = xoffset(H);  yoff = yoffset(H);  c(1:2) = c(1:2) - xoff; c(3:4) = c(3:4) - yoff;    c=round(c*sl/ss);endif c(3)<1, c(3)=1;endif c(1)<1, c(1)=1;endif c(4)>sl, c(4)=sl;endif c(2)>sl, c(2)=sl;endM=I(c(3):c(4), c(1):c(2));coord=c;return

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -