How to Connecting nearby pixels of binary image

4 ビュー (過去 30 日間)
hussain abdelaziz
hussain abdelaziz 2021 年 4 月 5 日
コメント済み: hussain abdelaziz 2021 年 4 月 5 日
How Connecting nearby pixels of binary image. Because i need to use image region analyzer and need to the image to be as one connected pixels i have thousands of image like that i need to make all pixels connected or how to make image region analyzer as one image not parts.. I work on CT image like this which i need image region analyzer as one part
  2 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 4 月 5 日
Is this segmenattion result?
hussain abdelaziz
hussain abdelaziz 2021 年 4 月 5 日
This a slice of CT IMAGE OF HEAD OF A DOLPHIN

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

回答 (2 件)

Matt J
Matt J 2021 年 4 月 5 日
imclose() is the traditional way to close small gaps between nearby pixels.
  1 件のコメント
hussain abdelaziz
hussain abdelaziz 2021 年 4 月 5 日
I will try it thank you

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


Image Analyst
Image Analyst 2021 年 4 月 5 日
Are there really gaps/openings there or not? If they aren't there, then it looks like you just did the segmentation improperly, like you chose a bad threshold or something. With a good threshold, you should be able to get at least the outer perimeter closed.
  5 件のコメント
Image Analyst
Image Analyst 2021 年 4 月 5 日
It doesn't look like a binary image. It looks like a gray scale image that was thresholded to create a binary image, and then the binary image was used to mask (erase) the gray scale image outside the mask. Like
mask = grayImage > someThresholdValue;
outputImage = grayImage; % Initialize
outputImage(~mask) = 0; % Erase outside mask.
What I'm saying is that your segmentation algorithm, which might be a simple global threshold like the first line of code I gave above OR it may be something more complicated, is not doing a good job masking the image. So, did you do a global threshold? If so, try changing the threshold value. Or did you do something more sophisticated, like called imbinarize() with the adaptive (locally varying) option?
hussain abdelaziz
hussain abdelaziz 2021 年 4 月 5 日
Yes it's gray image.
Ok I will try thank you very much

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

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by