Nov 6, 2011 #1 S shefsharma Newbie level 3 Joined Apr 23, 2011 Messages 3 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,296 i've a binary image and i want to know the coordinates of all the pixels. 've tries bwlabel,regionprops,bwboundaries ,[x, y]= find(bw)etc but not getting any results. kindly help.
i've a binary image and i want to know the coordinates of all the pixels. 've tries bwlabel,regionprops,bwboundaries ,[x, y]= find(bw)etc but not getting any results. kindly help.
Nov 7, 2011 #2 B BradtheRad Super Moderator Staff member Joined Apr 1, 2011 Messages 15,182 Helped 2,900 Reputation 5,812 Reaction score 2,982 Trophy points 1,393 Location Minneapolis, Minnesota, USA Activity points 113,733 I assume those are commands that do the same as 'GePixelValue' or 'GetPixelColor' or 'GetPixelRGB', etc. * Did you open more than one window? Are you reading pixels in the active window? * Is your code compatible with the screen bit depth you're handling (colors or B&W)? * Are you storing values in compatible variables? Byte, integer, word, long integer, etc.? * Does your program assign black to be 1 or -1? True or NOT(0)? Because NOT(0) is -1.
I assume those are commands that do the same as 'GePixelValue' or 'GetPixelColor' or 'GetPixelRGB', etc. * Did you open more than one window? Are you reading pixels in the active window? * Is your code compatible with the screen bit depth you're handling (colors or B&W)? * Are you storing values in compatible variables? Byte, integer, word, long integer, etc.? * Does your program assign black to be 1 or -1? True or NOT(0)? Because NOT(0) is -1.