Given an image , how to efficiently (vectorization) make all the elements to zero except the one with information?
Afficher commentaires plus anciens
The image is scaled color version of absolute value of the matrix.
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 26 Août 2018
Probably thresholding and masking.
mask = theImage ~= backgroundValue; % Threshold.
theImage(mask) = 0; % Mask
Attach your data in a .mat file if you want more help.
Catégories
En savoir plus sur Image Preview and Device Configuration dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!