Prev: wavread problem
Next: Bluetooth and MATLAB
From: Ashima Setia on 9 Jan 2010 08:49 hi. i am completely new to MATLAB. i have an image containing three black cross-shaped figures. my problem is to store pixel coordinates of all three points separately. i proceeded using grayscale version of image, scanning the whole image in a loop and identifying the intersection point of each cross (using distinction between the values 0 and 255). however, my results are very different from the values given by data cursor. please help me find the mistake in my technique. thanks
From: ImageAnalyst on 9 Jan 2010 08:53 Ashima Setia: You need to threshold your image then label it (with bwlabel or bwconncomp), and call regionprops. You can either look for the centroid (which regionprops gives you), or you can skeletonize it with bwmorph and then use the crossing feature of bwmorph which is new in 2009 with the Image Processing Toolbox. For a general image processing example, check out this demo http://www.mathworks.com/matlabcentral/fileexchange/25157
|
Pages: 1 Prev: wavread problem Next: Bluetooth and MATLAB |