immultiply
将两个图像相乘或者将图像乘以常量
说明
示例
将图像与自身相乘
将一个灰度图像读入工作区中,然后将该图像转换为 uint8
。
I = imread('moon.tif');
I16 = uint16(I);
将图像与其自身相乘。请注意,在执行乘法之前,immultiply
会将图像的类从 uint8
转换为 uint16
以避免截断结果。
J = immultiply(I16,I16);
显示原始图像和处理后的图像。
imshow(I)
figure imshow(J)
按常量因子缩放图像
将图像读入工作区。
I = imread('moon.tif');
将图像的每个值按常量因子 0.5 进行缩放。
J = immultiply(I,0.5);
显示原始图像和处理后的图像。
imshow(I)
figure imshow(J)
输入参数
输出参量
版本历史记录
在 R2006a 之前推出
另请参阅
imabsdiff
| imadd
| imcomplement
| imdivide
| imlincomb
| imsubtract
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)