How to Remove Minor background details from the image

조회 수: 1 (최근 30일)
Tallha Akram
Tallha Akram 2013년 9월 12일
For the object extraction i need to enhance the image contrast, which not only enhance foreground object but also the minor background details of gray image.
How to remove the background as i need the background clear in order to detect the edges of salient object?

채택된 답변

Image Analyst
Image Analyst 2013년 9월 12일
It's hard to say without seeing the image. Perhaps thresholding? Perhaps something else first? But after all the processing steps are done, the last step in segmentation is always thresholding. You do whatever you need to do to get to a point where you can say "this is foreground" and "this is background" and that is thresholding.
  댓글 수: 2
Tallha Akram
Tallha Akram 2013년 9월 12일
i think thresholding will not work. In case of thresholding for the image, object will lose its contents. I can send you on your email address if possible for you.
thanks.
Image Analyst
Image Analyst 2013년 9월 12일
편집: Image Analyst 2013년 9월 12일
You misunderstand. It will work. I've been making a living off thresholding for 35 years. You always do processing until you get to a point where you define the areas you want to measure by thresholding. That's what segmentation is - it's where you say "I want this and I don't want that." For example, if your background is less than 100 gray levels, then you can get foreground and background images by thresholding and masking
% Threshold.
binaryImage = grayImage < 100; % binary image is background.
% Multiply to zero out foreground and get background gray image.
backgroundImage = grayImage .* uint8(~binaryImage);
% Multiply to zero out background and get foreground gray image.
foregroundImage = grayImage .* uint8(binaryImage);

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by