필터 지우기
필터 지우기

edges colour change in an image

조회 수: 2 (최근 30일)
nonyt
nonyt 2011년 3월 11일
Hey I am trying make the edges in an image more thick I am doing a laplacian filtering and i get white edges with black background and add it to my image how do i change the edges to be black?

채택된 답변

Sean de Wolski
Sean de Wolski 2011년 3월 11일
I(edges) = 0; %?
Also look at:
doc imerode
doc imdilate
  댓글 수: 2
nonyt
nonyt 2011년 3월 15일
Sorry for late answer :
I was trying the following...
t: image
<768x1024x3 double>
for (i=1:size(t))
if (t[i]==0)
t[i]=1;
end
end
but I have some errors that I cant understand why is not working..
error:Unbalanced or unexpected parenthesis or bracket(in the second line)
Any help?
Walter Roberson
Walter Roberson 2011년 3월 15일
for i=1:size(t)
with no () around it.
if t(i)==0
with (i) instead of [i]
t(i)=1
instead of t[i]=1

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by