Borrar filtros
Borrar filtros

Anyone know how to use "image_add ()" command?

1 visualización (últimos 30 días)
Iszuzuldin amirull bin mohd janudin
Editada: DGM el 12 de Ag. de 2021

Respuestas (1)

DGM
DGM el 12 de Ag. de 2021
Editada: DGM el 12 de Ag. de 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.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by