Skip to content

Malaria detection with image data using various methods in python.

License

Notifications You must be signed in to change notification settings

RajafarAttala21/Malaria-detection

Repository files navigation

Image Processing Malaria in Red Blood Cells

by Mohammad Attala Rajafar

This project contains about how malaria can be detected in red blood cells using 4 methods, namely:

  1. Matching templates
  2. Multiple Matching Templates
  3. Thresholding
  4. Total Red Blood Cells (in the picture)

The dataset i used



Multiple Template Matching

Multi-Template-Matching is a python package used to perform object-detection on a given image. It makes use of the list of templates as a reference to detect objects similar to the present in the given image. This package is capable of detecting multiple similar/different objects in the image as long as the templates for all the required objects to be identified are provided beforehand.

Using libraries:

  • numpy
  • matplotlib
  • cv2/opencv


Template Matching

Template matching refers to the image processing where we find similar templates in a source image by giving a base template to compared on. The process of template matching is done by comparing each of the pixel values of the source image one at a time to the template image. The output would be an array of similarity values when compared to the template image.

Using libraries:

  • numpy
  • matplotlib
  • skimage


Thresholding

The simplest thresholding methods replace each pixel in an image with a black pixel if the image intensity is less than a fixed value called the threshold, or a white pixel if the pixel intensity is greater than that threshold. In the example image on the right, this results in the dark tree becoming completely black, and the bright snow becoming completely white.

Using libraries:

  • skimage
  • matplotlib


Total Red Blood Cells

Trying to find out how many red blood cells can be recognized through an image

Using libraries:

  • cv2
  • matplotlib