range set to median, not mean
deinterlace = 0 does not deinterlace
more generous automatic threshold estimate
cleaned up threshold code
all_neighbors in label_region
documentation