A Preprocessing Algorithm Based on Heterogeneity Detection for Transmitted Tissue Image