Anyone know how to use "image_add ()" command?
1 view (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/709157/image.jpeg)
0 Comments
Answers (1)
DGM
on 12 Aug 2021
Edited: DGM
on 12 Aug 2021
I don't know where image_add() or Image_subtract() came from. They're not part of MATLAB or anything that I can find on the File Exchange.
That said, these are probably the simplest things to replicate. Assuming that the images are the same size and class, you can use imadd() and imsubtract() from the Image Processing Toolbox. You can also just literally add or subtract the numbers using + or -.
If the class or number of channels may vary, you'll have to manage that accordingly before you add/subtract them. Imblend() from MIMT (on the File Exchange) can do add/subtract blends regardless of a mismatch of class or number of channels. That said, it's probably severe overkill for just that.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!