Applications of the Phase Transition Theory in Visual Recognition and Classifications