Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

for loop

Status
Not open for further replies.

susiechai

Computer
Nov 4, 2001
1
Hello,
I wrote the code for image processing purpose. First, i already labelled my image edges with number, let's say from 1 to 10. Next using the imfeature in Matlab, i want to find the centroid for each mass. The problem is, when i stated, edgeim==1, it found 2 centroid, and when i stated edgeim==2, it found 1 centroid. So, i replace this manual steps with a for loop, for i=1:2. The weird thing is, i get 12 centroid points instead of 3. Why ?? anyone can help ?

regards,
susie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor