
OMTG is a gridding tool for analyzing different types of microarray images. It can find sub-grids boundary within a microarray image as well as boundary of spots within each sub-grid.

This tool has been implemented in matlab. The main file of this tool is OMTG.m and has several options to run the algorithm.

Usage:
   By running the OMTG.m, the tool start processing the file stated in FILE_NAME variable. 

Options:   
   There are three options named method and smoothing:
   1- The method variable could be set to 1, 2 or 3 corresponding to Between Class method, Entropy method and Minimum Error method. The default value is 1 (applying between class method).
   2- The smoothing variable is to enable/disable of smoothing the histogram before finding the peaks. The value can be set to 0 or 1 to disable/enable this option.
   3- The output image can be saved in different formats, based on the value of Output_Format variable as below:
   
		   'ai'    Adobe Illustrator `88
		   'bmp'   Windows bitmap
		   'emf'   Enhanced metafile
		   'eps'   EPS Level 1
		   'jpg'   JPEG image (invalid for Simulink block diagrams)
		   'pbm'   Portable bitmap
		   'pcx'   Paintbrush 24-bit
		   'pdf'   Portable Document Format
		   'pgm'   Portable Graymap
		   'png'   Portable Network Graphics
		   'ppm'   Portable Pixmap
		   'tif'   TIFF image, compressed
		   
   the default format is 'png'.
   
   
Output:
    The algorithm, finds the sub-grid in the images and, in the next step, it finds the boundries between spots within each sub-grid.
	
    The name of detected sub-grids is based on the row number (from top to bottom) and column number (from left to right).

	
