First time here? Check out the FAQ!
cvInRange expects a black and white image, I think.
Try using cvInRangeS