
Clusters Deletion with various measures  Urgent help required
Posted:
Jan 4, 2013 10:39 AM


Dear Friends I clustered image regions data into different clusters and stored those clusters into variable as below.
>>Clusters=[1,2,2,3,3,3,2,1,3,2,1,1,3,4,,5,3,6]; This means that Clusters 1 contains region 1, 8,11,12 and clusters 2 contain 2,3,7,10 and so on.
I have the following threshold measures to delete clusters from Clusters variable using Angle, DeltaX, RelativeHeightPosition, DeltaY, RelativeWidthPosition, AdjacentRegionsHeight (This height is computed between adjacent clusters like 1 and 2, 1 and 3, 1 and 4, 1 and 5, 1 and 6, 2 and 3 and so on) and AdjacentRegionsWidth (This width is computed between adjacent clusters like 1 and 2, 1 and 3, 1 and 4, 1 and 5, 1 and 6, 2 and 3 and so on).
Now I have to apply the following conditions to delete clusters.
Angle>45 && DeltAX>RelativeHeightPosition && DeltAY>RelativeWidthPosition && AdjacentRegionsHeight>50 && AdjacentRegionsWidth>50
50 is some threshold value set by the user.
Please help me in implementing the deletion of clusters which does not obey the given condition. I will be really thankful as I am badly stuck here.
Please help me, I request to all of Matlab Geeks.
Best Regards
KK

