主题:matlab 图象处理
skyhawk101
[专家分:0] 发布于 2007-05-20 11:29:00
各位
matlab中如何让图象求反?
谢谢
回复列表 (共4个回复)
沙发
DingSun [专家分:730] 发布于 2007-05-20 14:03:00
用灰度图的最大值减去你现在的图象,
看看是不是你想要的结果
板凳
DingSun [专家分:730] 发布于 2007-05-20 14:47:00
我这里有处理过后的图片,
不知道是不是你想要的结果,如果需要就给我电子邮件,我发给你
3 楼
xiami0532 [专家分:30] 发布于 2007-10-11 10:18:00
可以用g=imcomplement(f)或者imadjust,具体请查阅matlab得help
4 楼
sagiltarivs [专家分:2610] 发布于 2007-10-11 10:37:00
IMCOMPLEMENT Complement image.
IM2 = IMCOMPLEMENT(IM) computes the complement of the image IM. IM
can be a binary, intensity, or RGB image. IM2 has the same class and
size as IM.
In the complement of a binary image, zeros become ones and ones
become zeros; black and white are reversed. In the complement of an
intensity or RGB image, each pixel value is subtracted from the
maximum pixel value supported by the class (or 1.0 for
double-precision images), and the difference is used as the pixel
value in the output image. In the output image, dark areas become
lighter and light areas become darker.
Note
----
If IM is a double intensity or RGB image, you can use the expression
1-IM instead of this function. If IM is a binary image, you can use
the expression ~IM instead of this function.
Example
-------
I = imread('bonemarr.tif');
J = imcomplement(I);
imshow(I), figure, imshow(J)
See also IMABSDIFF, IMADD, IMDIVIDE, IMLINCOMB, IMMULTIPLY, IMSUBTRACT.
我来回复