How to remove background from an image?
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
Hello,
I'm doing project on object recognition, and in one of my module, i need to extract the feature but for that removal of background is necessary.. so how can i do this?? please help me!
The link for database which i am referring is as mentioned below, http://www.imageprocessingplace.com/downloads_V3/root_downloads/image_databases/MPEG7_CE-Shape-1_Part_B.zip
Thanks!
채택된 답변
Walter Roberson
2013년 1월 3일
0 개 추천
In every one of the images in that .zip file, the background has already been removed.
Removal of background is what you do when you have a picture of a real object, or at least a model of that object whose picture has been taken. For example if you had a picture of an apple sitting on a plate, you would need to remove the plate (and the table and everything else that was not the object of interest.)
댓글 수: 15
Nikhil
2013년 1월 3일
sir here all the images contains only one object!! i just need to remove that black background, so i would like to know, how can i do this??
What would you like to replace the black background with?
Nikhil
2013년 1월 3일
black background with nothing!! i just want to remove that.
Wait... I think I may finally have it:
C = num2cell(YourImage);
C(~YourImage) = {};
This will give you a cell array in which there are empty cells ("nothing") where the background was, and cells containing [1] where the foreground was.
Nikhil
2013년 1월 3일
sir it gave me an error 2nd line.
The error is " In an assignment A(:) = B, the number of elements in A and B must be the same."
C = num2cell(YourImage);
C(~YourImage) = {{}};
Nikhil
2013년 1월 3일
yes sir it worked but sir how can i make it visible??
Oh, if you want to make it visible, you use the technique I told you to use before:
imagesc(YourImage, 'AlphaData', YourImage)
colormap(gray)
set(gca, 'color', 'none')
Depending on what you have done before in that session you might need to add
set(gcf, 'renderer', 'opengl')
Nikhil
2013년 1월 3일
It worked!!
Thanks a ton sir, you helped me through out! Thanks once again!
Subha
2013년 2월 14일
Sir with this code i implemented to my histopathological image.... now i need to calculate statistical and textural features... how can i process it again.. i have segmented cell as in color cell segmentation in matlab.. now with this code removed the black color... but hw can i proceed with further processing. give ur suggestion sir.. i've tried cell2mat ,, but its not supporting...
Image Analyst
2013년 2월 14일
Please start your own question. Upload your image , then tell us where it is. You also would need to explain, in that new question, what exactly "further processing" means because that is way too vague to answer.
muthu selvam
2015년 3월 10일
Sir i doing Pattern recognition Letters Project.. I see the lot math works web page . But i have don't collect How to Remove background from image? I need the coding for remove background from the image..... Advance Thanks...
Sneha Rauniyar
2017년 11월 5일
sir i am doing dust particle monitoring project for this i have to remove all background expect dust particle from the image... What should i do? Could you suggest me some matlab codes?
Sneha Rauniyar I recommend you start a new Question, and post a couple of images. You will need to clarify how you know whether a particular dust particle is a foreground dust particle to be kept, or a background dust particle to be removed.
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
