Improve Image binarization and segmentation
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
KALYAN ACHARJYA
2019 年 6 月 4 日
編集済み: KALYAN ACHARJYA
2019 年 6 月 4 日
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 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!