Parallel Blob detection Reindexing of labels

Hi gys…

I was succesfull in implementing parallel blob detection using parallel CCL. Now my buffer has different labels for different blobs but they are not indexed.
Currently labels are dependent upon index of the top most pixel in the blob. Can anyone provide me with a hint on how to reindex the blobs from 1…n
It will be really helpfull if i can find the center of the blob too…

Thanks…