detects the color image when executed in matlab mainly primary colors