필터 지우기
필터 지우기

I want to extract object from an image using the following threshold value program how can i use a filter to get the good result.

조회 수: 1 (최근 30일)
a=imread('a6.jpg');
m=ones(600,800,3);
c=255.*m;
e=ones(600,800,3)
for i=1:600;
for j=1:800;
if a(i,j,1)<100
if a(i,j,1)>55
c(i,j,1)=a(i,j,1);
if a(i,j,2)<104
if a(i,j,2)>75
c(i,j,2)=a(i,j,2);
if a(i,j,3)<90
if a(i,j,3)>56
c(i,j,3)=a(i,j,3);
end
end
end
end
end
end
end
end
e=c./255;
colormap(jet);
image(e);
...
  댓글 수: 5
shantanu shukla
shantanu shukla 2013년 11월 25일
Mr. Walter i want to extract tree ,river ,houses and roads. so plz help me regarding this

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

답변 (1개)

Image Analyst
Image Analyst 2013년 11월 25일
You cannot get it from thresholding or even combined with texture classification. There is just too much higher level knowledge required. Maybe try this: http://www.mathworks.com/matlabcentral/fileexchange/37197-dem-diffused-expectation-maximisation-for-image-segmentation or similar. But even that won't be perfect. I suggest you use ginput or roipoly to manually locate them (unless you have thousands of images).

카테고리

Help CenterFile Exchange에서 Red에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by