Does the fact that you look like a guy who committed a crime constitute grounds for detention? In other words, can you be pulled over for looking like a suspect who committed some crime and for no other reason?
If you are a black man, you don't look like every other black man. If you are driving around in a car like many, many other people, then being black and male doesn't give any reasonable grounds to believe that you would be the black male person suspected of a crime that the police is looking for.
On the other hand, if the police officer has a picture of the criminal, and reasonably good eyes, and you do indeed look like the criminal, yes of course you can be detained.
And if a crime happened, and the police managed to close off the crime scene and hold every single person who could have committed the crime, and there is evidence that a black male committed the crime, and you are the only black male present, then you have a problem. You would have the same problem if you were the only white female present, and there was evidence that a white female committed the crime.