How to not consider the image background in binarization of a circular image?

조회 수: 1 (최근 30일)
Pouria Nakhaei
Pouria Nakhaei 2020년 11월 2일
답변: Parth Dethaliya 2020년 11월 12일
Hi all,
I have a circular CT scan image of a concrete sample. I want to only consider the image in the binarization process and either omit the background or somehow do not consider it in the binary image. I have used many codes, but still, the background pixels count in the binary image. I would really appreciate your help.

답변 (1개)

Parth Dethaliya
Parth Dethaliya 2020년 11월 12일
You can try this:
  1. Binarize whole image such that the Region of Interest (the central part) is white (1's) and fill holes.
  2. So you will have a mask for the ROI, Now just crop the binarized image (without holes filled) using the mask
I hope you may get the desired output, even these steps can be automized or performed in general if you have long dataset.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by