马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
请教:图象如何取反
在MATLAB中如何对图象进行反色处理?没有用过,请教大侠
>> [X,map]=imread('D:\pic\UF2006325103210.jpg');
>> map=[[0:1/256:255/256]',[0:1/256:255/256]',[0:1/256:255/256]'];
>> X=uint(255-double(X));
>> imshow(X,map)
Warning: Displaying real part of complex input
> In D:\MATLAB6p5\toolbox\images\images\imshow.m (ParseInputs) at line 503
In D:\MATLAB6p5\toolbox\images\images\imshow.m at line 90
??? Error using ==> real
Function 'real' is not defined for values of class 'struct'.
Error in ==> D:\MATLAB6p5\toolbox\images\images\imshow.m (ParseInputs)
On line 504 ==> cdata = real(cdata);
Error in ==> D:\MATLAB6p5\toolbox\images\images\imshow.m
On line 90 ==> [imtype, cdata, cdatamapping, clim, map, xdata, ydata, filename, ...
谁能告诉最后一步错误原因是什么?谢谢了 |