Hello Dr. Yushkevich,
My name is Dirk Padfield, and I work at the GE Global Research Center in NY. I use SNAP frequently for viewing the results of my cell image segmentations, and I find it a very useful tool for visualizing the data. I have a quick question for you about the number of labels in SNAP. Often, there are more than 256 cells in an image, so cells numbered above 255 in the original data, say x, get numbered x mod 256. This becomes confusing because several cells have the same number although they don't in the data read in. Also, cells that have an original label that is a multiple of 256 get mapped to 0 and therefore get cleared (using the default color map). If the type of the label mask could be changed (I believe it is now UChar) to one that could accommodate more labels, that would be very useful.
I have a CVS checkout of InsightSNAP through InsightApplications, and I have looked through the code to find how to change this for my local copy. I found in InsightApplications\SNAP\Common\SNAPCommon.h that there is a variable called MAX_COLOR_LABELS that is set to 256, but simply changing this to a higher value didn't seem to solve the problem. It seems that there should be an easy way to modify this, but I am not familiar enough with the code. If you could give me some insight, I would greatly appreciate it.
Thank you,
Dirk.Dirk Ryan Padfield
Computer Scientist
Visualization and Computer Vision Lab
GE Global Research Center