Cluster merging - mergeclust.m

Syntax:

results2=mergeclust(results,q,index)

This function merges the compatible indexth and index+1th clusters and gives the modified values of the segmentation in the variable results2, which has the same structure as the output variable of the segmentation algorithm ppcamod.m.