How can I write a MATLAB code for Image Analysis?

I have images on cancer and would like to write the Image code sequencing to enable it to identify the stages of cancerous cells form other photos, How can I achieve this? what is the nature of this code? is it Java, C# or a simple line command? where can this code be found?
