Tuesday, April 17, 2007

17 April: Standard Count - Square Identification Done


The output so far is something like this. (Note: red lines indicate all the lines identified with the Hough transform and the thick green lines indicate the squares the MLT would prefer to do counting on - I've implemented a simple algorithm to do this).

However there is one simple caveat in my algorithm. Remember that the actual counting chamber we used in taking the images had 3x3 small squares fitted into 3x3 larger squares? So, according to my algo, the user - MLT, would have to input the configuration (whether it's 3x3 or 4x4). Since I used the above picture for testing, I used the default value of 4.

May be we could use some sort of a heuristic algorithm to find out whether it's 3x3, 4x4 or whatever. But at the moment, I am really not up for it :-).

If Vidakna needs the coordinates of the crossing points of the squares detected as in the above diagram for her algorithm on counting the cells, I believe it is possible. Although earlier I said that we could use cvSeq for data exchange between our classes/functions as a standard, I now believe we could get the job done with familiar data types with less overhead. Anyway let's discuss about this further tomorrow.

I've committed the code in the svn and you are free to review and comment on it.

No comments: