function mainfunctionGaus(MyFileName)if size(MyFileName,3) == 3 disp('RGB') MyConvRGB(MyFileName); else disp('GSCale') MyConvGreyTest(MyFileName);endend
The above is my code and the image stored in "MyFileName" is this:
What should be happening is the function "MyConvRGB" should be ran by the if statement I put in but since size is giving me an incorrect answer it puts it through my greyscale code.
Best Answer