Photoshop isn't yet sentient, so any masking will have to be done manually. Or more to the point: The question is not whether PS can do it, but if the user has enough knowledge to do it. Since in your case that answer seems to score in the very low percentages, you would have to look up some tutorials on how to create an outline selection e.g. using the magnetic lasso and how to create fills and contours based on that...
Mylenium