how do i identify the background of binary image?

조회 수: 5 (최근 30일)
naya taaj
naya taaj 2018년 3월 16일
댓글: naya taaj 2018년 3월 18일
i have a binary image and I want to identify the background of the image? the image is bellow.
  댓글 수: 4
naya taaj
naya taaj 2018년 3월 17일
naya taaj
naya taaj 2018년 3월 17일
편집: naya taaj 2018년 3월 17일
this is my image that i got from triangle thresholding method, i want to identify the background in it so i can remove it.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2018년 3월 17일
In your case, the background is white. So you already have a background mask and you just need to tell us what "remove" means to you. Do you want to blacken it in the original image? If so, just do
% Mask the image using bsxfun() function to multiply the mask by each channel individually.
maskedRgbImage = bsxfun(@times, rgbImage, cast(~mask, 'like', rgbImage));
You can also use a gray scale image instead of rgbImage in the above code. Or, simply do
grayImage(mask) = 0;
  댓글 수: 17
Image Analyst
Image Analyst 2018년 3월 18일
편집: Image Analyst 2018년 3월 18일
Did you see at the bottom of Steve's blog where it said "Get the MATLAB code"? If you click on that, it will run a javascript and all the code for the watershed is there. Of course, I don't know if it's exactly the process done in your paper so you might have to compare and use whichever one you want if they're different.
naya taaj
naya taaj 2018년 3월 18일
Can anyone tell me how to join mathwork newsgroup, or how i can communicate with a certain mathwork participant ???

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by