private ImageProcessor findBoundaries(ImageProcessor ip){
		ImageProcessor boundaries = ip.duplicate();
		boundaries.threshold(0);
		ImageProcessor tempBoundaries = boundaries.duplicate();
		filter.rank(tempBoundaries, 1, RankFilters.MIN);
		boundaries.copyBits(tempBoundaries, 0, 0, Blitter.SUBTRACT);
		return boundaries;
	}