You could try Image J software. It has many features and plugins for various applications. You can also create a plugin yourself which may be specific to your requirements.
You are right, actually my question is not specific, the reason is that I want to have an idea of available analyzing programs for quantifying tissues in general.