Author Topic: B/W image. Intensity is 0 instead of 1 for some points outside the image  (Read 554 times)

Offline eeiatin

  • Newbie
  • *
  • Posts: 1
  • Matlab Forum
    • View Profile
Hi all,
I am kind of new to MATLAB so maybe this is a silly question...
Hope somebody there can help me.
 
I am trying to write a program to find the edges of a B/W image.
I(x,y)=1 for points outside the image (white)
I(x,y)=0 for points on the image (black)
 
However my program has found that some points have I(x,y)=0 even when they are not on the image.
I have tracked down those values on the picture and they are on the white area. So the value of Intensity there should be 1.
However when I try I(x,y) manually for those particular points, the value is 0.
 
Does anybody have any idea of what's going on??
 
Thanks a lot!
 
 
 

Matlab and SimuLink Development Forum