summation of binary images
Mostra commenti meno recenti
if i have 5 binary images.... how to compute the summation of all binary images and normalization of the pixel value.. please do reply how to write the matlab code.... please do reply.....
Risposta accettata
Più risposte (1)
If you would have 5 binary images stored in the variables Im1, Im2, Im3, Im4 and Im5, than you can get the summation by the command:
ImSum = Im1 + Im2 + Im3 + Im4 + Im5;
The new image ( ImSum ) will probably no longer be binary. You can normalize it to have its mean equal to 1 by the command
ImSum = ImSum/(mean(ImSum(:)));
Is this what you were looking for? You should try to be more specific in your question, i.e. post an example of what you are looking for or provide us with more details...
3 Commenti
Elysi Cochin
il 7 Set 2013
Image Analyst
il 7 Set 2013
Then you'd better use my answer, Geert's formula does give ImSum as a double, but the max value is still 1, not 5 since the casting to double is done after the sum, not to each image before the sum, thus the sums are clipped to 1.
Elysi Cochin
il 9 Set 2013
Categorie
Scopri di più su Image Processing Toolbox in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!