Improve Image binarization and segmentation
1 view (last 30 days)
Show older comments
I have a set of videos whose images I wish to binarize such that the background is black and everything else is white. The lighting varys from video to video and the crack grows as video progresses.
I have a function which will crop in on the crack in the sample (ask2 image) but then need to binarize this image as accurately as possible such that the background is black and everything else is white.
Simply thresholding produces innacuracies in different frames (images attached are clearer than most), what is the best method to make this as accurate as possible?
0 Comments
Answers (1)
KALYAN ACHARJYA
on 4 Jun 2019
Edited: KALYAN ACHARJYA
on 4 Jun 2019
From the attach images, it seems easy, try with global thresholding
Here threshold value is chaning as per image
threshold=graythresh(grayImage);
BW=imbinarize(grayImage,threshold);
Another way, if the dark regions are clipped, then use Histogram Equalization before binarization.
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!