Image cropping, basic - MATLAB

源代码在线查看: cropimage.m

软件大小: 53 K
上传用户: fpeisheng
关键词: cropping MATLAB Image basic
下载地址: 免注册下载 普通下载 VIP

相关代码

				function [s] = cropimage(image,m,n,x,y)
				%Crops a m*n selection of the image centered at location (x,y)
				I = imread(image);
				s = I((m-(x/2)):(m+(x/2)),(n-(y/2)):(n+(y/2)));
				imshow(s);
				
				end
							

相关资源