That can be true for some officers but for the majority of officers they could care less if you are red, black, green purple, white, blue, male or female. They are there to do a job and only that job. They want to go home after work same as everyone else. If you feel you are going to be treated because of you race then you may be a racist.
By this way of thinking that means white people better watch out if they are pulled over by a black officer or a Hispanic officer as they may get shot.