Boost/Enhance white pixels

4 ビュー (過去 30 日間)
Stelios Fanourakis
Stelios Fanourakis 2019 年 9 月 11 日
コメント済み: Stelios Fanourakis 2019 年 9 月 17 日
Hi
How can I enhance or boost the white pixels of the image? Like multiplying them, make them double. Generally, thicker white lines (see attached).

採用された回答

Sourav Bairagya
Sourav Bairagya 2019 年 9 月 16 日
First, you can binarize the image and then use ‘bwmorph’ function to thicken the white lines present in the image.
Format of usage is as follows: bwmorph(img, ‘thicken’, n)
Here, ‘n’ is the number of times to perform the operations. You can control the thickening by controlling this parameter.
After thickening if you like to connect the unconnected pixels, then you can use ‘bwmorph(img, ‘bridge’) and then can use ‘imdilate’ function to enhance the connected line.
a=imread('1.bmp');
a=rgb2gray(a);
a=imbinarize(a); % First binarize the given image
b=bwmorph(a,'thicken',1); % Use bwmorph to thicken the white line
b=bwmorph(b,'bridge'); % Use this to connect the pixels
se = strel('line',10,180); % Structuring element for dilation
b = imdilate(b,se); % Dilates the image
imshow(b);
Hope this will help you.
For further information about ‘bwmorph’ function you can follow this link.https://www.mathworks.com/help/images/ref/bwmorph.html?s_tid=doc_ta
  1 件のコメント
Stelios Fanourakis
Stelios Fanourakis 2019 年 9 月 17 日
That's very good Sourav. Thanks a lot.
However, the bridge command didn't actually work. Maybe I need to define certain value for all pixels to get connected.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Filtering and Enhancement についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by