Given an image , how to efficiently (vectorization) make all the elements to zero except the one with information?
Show older comments
The image is scaled color version of absolute value of the matrix.
Accepted Answer
More Answers (1)
Image Analyst
on 26 Aug 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.
Categories
Find more on Image Preview and Device Configuration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!