链接b.jpg
i=imread('b.jpg');
i1=rgb2gray(i);
i2=im2double(i);
j=log(1+i2);
1.
现在这是为了获取图像的直方图。
imhist(j);
说错误:
??? Error using ==> iptcheckinput
Function IMHIST expected its first input, I or X, to be two-dimensional.
Error in ==> imhist>parse_inputs at 270
iptcheckinput(a, {'double','uint8','logical','uint16','int16','single'}, ...
Error in ==> imhist at 57
[a, n, isScaled, top, map] = parse_inputs(varargin{:});
==================================================== ============================
2.如何绘制功能图?
plot(j,i2);
??? Error using ==> plot
Data may not have more than 2 dimensions
==================================================== ============================= 3.如何获得伽玛j