public boolean checkIntensity ( boolean insideDark , double threshold ) { if ( insideDark ) return averageOutside - averageInside >= threshold ; else return averageInside - averageOutside >= threshold ; }
Checks the edge intensity against a threshold .