Using granulometries in processing images of malarial blood