From: inbal avraham on
I need a code for findng connect components with a given predicate.The input is matrix with varies values and I shold connect neighbours pixels if their values ratio is not more than 3.Does anyone have such a code?