- 博客(3)
- 收藏
- 关注
原创 MATLAB的pixeldup.m函数(通过像素复制来放大图像)
function B=pixeldup(A,m,n) if nargin<2 error(‘At least two inputs are required’); end if nargin==2 n=m; end u=1:size(A,1); m=round(m); u=u(ones(1,m)😅; u=u(😃; v=1:size(A,2); n=round(n); v=v(ones(1,n)😅; v=v(😃; B=A(u,v);
2022-03-08 15:46:53 1023
原创 MATLAB的toflat.m函数
function [out, revertclass]=tofloat(in) %tofloat convert image to floating point identity=@(x) x; tosingle=@im2single; table={‘uint8’, tosingle, @im2uint8 ‘uint16’, tosingle, @im2uint16 ‘int16’, tosingle, @im2int16 ‘logical’, tosingle, @logical ‘double’, i
2022-03-08 14:48:48 137
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人