Skip to content

A versatile Methodology or pipeline for object-localization in microscopy images using Template Matching

License

Notifications You must be signed in to change notification settings

yashodeepchikte/Multi-Template-Matching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Multi-template matching visitors

A versatile pipeline for object-localization in microscopy images using Template Matching

Overview

The localization of objects of interest is a key initial step in most image analysis workflows. For biomedical image data, classical image-segmentation methods like thresholding or edge detection are typically used. While those methods perform well for labeled objects, they are reaching a limit when samples are poorly contrasted with the background, or when only parts of larger structures should be detected. We propose a new straightforward and generic approach for object-localization by template matching conditions.

overview image 1 overview image 2

Description

Generally, in a microscopic image, the main subject of interest is located in a very small field of view and is randomly positioned in the image. Our aim here is to develop a generalized way to localize the subject or subjects to zero down on that area in the image containing the subject/subjects. And for doing so, studying different template matching techniques and trying to mitigate the problems created by differences in size and noise in the image to get the best results most of the time.
We wish to define a workflow so the user can easily and effectively use this tool for localising subjects in their images as per the templates that the user will provide.

Workflow

Woekflow image

Dataset Link

We curated this dataset from another dataset :-
Cellular detection in fluorescence microscopy acquisition and analysis by
Waithe D, Brown JM, Reglinski K, Diez-Sevilla I, Roberts D, Eggeling C.

Subject_01 contains 40 subjects images and 30 templates. Subject_02 contains 96 subjects images and 28 templates.

The data set consists of various images of medaka and zebrafish embryos. Every image consists of a minimum number of organisms mainly four. Every subject provided has a different orientation of the microorganism, some of them are overlapping each other.

The following operation is performed on the dataset: 1.Data images are stored in a folder named subject.
2.From a given set some templates are manually created using cropping and some enhanced Photoshop technique and are made sure that they are of proper scaling.
3.These extracted images are further used as input in one of the template generator functions which rotate the template from 0-90 degrees with 10 degrees of each rotation, further, these images are flipped x, flipped y, flipped xy.
4.All the images obtained above then go through the process of photo enhancement technique which mainly include changes in contrast level, brightness level, color correction, sharpness level, etc.
5.All the above images are stored in a folder named template. These images are further used for template matching.

To use this dataset download the dataset files from this link
Extract it and place the subject_01 and subject_02 folders in imputs folder that is in the main folder
Make sure that in the inputs folder you put the subject_01 and subject_02 folders and not the dataset folder

Sample images

Sample Images

Results -->

Embrio

Embrio results


Embrio analysis

Zebrafish

Zebra fish predictions Zebra-fish results

Dependencies

This is the list of dependencies for running this application.

  • Opencv
  • Pandas
  • Numpy
  • Scipy
  • Matplotlib

Contributers

Yashodeep DP Kailash DP

About

A versatile Methodology or pipeline for object-localization in microscopy images using Template Matching

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages