Image analysis-based quantification of fungal sporulation by automatic conidia counting and gray value correlation