This is a simple domain specific (VERY specific) cell counting software I wrote for a friend. It’s a semi-automated tool to help count cell colonies. Just to give an example of how domain specific, it’s designed to work with images that look like below. The cells have to be darker than the surrounding.
Have a look at this video, which shows how the software works and what it can do. NOTE: The video shows an out of date version, but most of the interface is the still the same.
Download
CellCounter is cross platform and has currently been tested on Linux and Windows 7.
![]() |
CellCounter-0.2.1-win.zip (3.8MB) – Pre-compiled Windows 32bit binaries. Tested on Windows 7. |
![]() ![]() |
CellCounter-0.2.1.zip (42kb) – Linux/Windows source projects. CodeBlocks and Visual Studio 2010 project. Requires wxWidgets 2.9.x and OpenCV 2.3.x or above. |
Sample data
sample.tif (26MB) Right click and save as
Quirks
On Linux when loading sample.tif it comes up with a few error, as shown in the video, you can ignore it. It does not seem to have an impact.
Usage
The video in the introduction gives an idea on how to use the program. The mouse and keyboard functions are:
Mouse actions:
- Left button down + move – pan the image
- Scroll wheel – zoom in/out
- Double click – centres the image
- Left click – select well
- Ctrl + left click – add colony
- Right click – remove colony
Keyboard actions:
- s – switch between binary and colour image
These instructions can also be found by going to Help -> How to use.
When you click ‘Save results’ it will add an entry into the text box in the bottom right. It’s a 3 column entry separated by a TAB. The first value is an incrementing number, the second is the pixel co-ordinate of the well’s centre, where (0,0) is top-left. The third value is the number of colonies counted. You can copy and paste this directly into Excel and it will put them into the correct fields.
License
Simplfied BSD.
Copyright 2011 Nghia Ho. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of
conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list
of conditions and the following disclaimer in the documentation and/or other materials
provided with the distribution.
THIS SOFTWARE IS PROVIDED BY NGHIA HO “AS IS” AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NGHIA HO OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those of the
authors and should not be interpreted as representing official policies, either expressed
or implied, of Nghia Ho.



I am using you software for my school work, but i have a problem when ever i try to open the picture the screen area where the picture is. Turns white, although when i run the count it gives me a reading and i can see the gree cells but i cannot view it in the biggining. thx
This is most likely an OpenGL related issue. How old is your computer/graphics card? I had this problem on older computers that can’t handle images not the power of 2.
Like 6 years
Might be a bit too old. A simple work around would be to resize your image so it’s width and height are powers of two. Depending on how big your image is you might not need to rescale, but just increase the borders of the image. A good starting size might be 1024×1024.
but i was testing the software to see if it works therefore i was using the picure you have uploaded on your sit. “sample.tif”
Ah right. Sadly it looks like your hardware might be a bit too old. You can still use my image to play with, just a crop out a section.
Do you know of any other freeware that would work for my laptop??? plz help
Don’t know any sorry.
User friendliness is something alot of these free colony/cell counting software lack, nice job man. Wish I had time & your programming knowledge to write this sort of thing…
Thanks
Something I whipped together quickly for a friend.
Thanks for developing such a great software!!!
I installed your program on WinXP (not my computer) and worked really well.
Then, I tried on my machine (Linux Mint 14).
Problem is when I tried to compile in wxWidget I get an error message
‘error: field ‘m_histogram_cache’ has incomplete type’
I googled about this error but couldn’t find an answer.
What could be the problem?
I don’t have programming experience, so if you can, explain in detail, please.
Thank you!
Might be a difference between version 2.8 and 2.9. Try adding this line at line 26 in CellCounterMain.h
#include
eg.
#include
//*)
#include < -- line 26
#include
#include