Something like that:
for (int i = 0, int numBlobs = contourFinder.blobs.size(); i < numBlobs; ++i){
ofxCvBlob & blob = contourFinder.blobs[i];
ofVec2f c( blob.centroid.x, blob.centroid.y );
ofVec2f v = p - c;
float d = v.length();
float f = 10000 / d / d;
v = v.getNormalized() * f;
p += v;
}