(Solved) OpenCV: How do I make a Mat colorized where the Mask is white : I am new to opencv and just doing a basic RGB color filter. I was doing this by testing each pixel, but that's inefficient. So I tried (Java)Core.inRange but that returns a mask (black and white) and I need a colored Mat. Here is what I currently have(Java):
			
            //frame is input, out is output
            Scalar minValues = new Scalar(RFrom, GFrom, BFrom);
			Scalar maxValues = new Scalar(RTo, GTo, BTo);
			Mat mask = new Mat();
			Core.inRange(frame, minValues, maxValues, mask);
			Core.bitwise_and(frame, mask, out);

Wow. Cool. 

Almost done with writing the question and I tried switching "out" and "frame" in and using frame.copyTo(out, mask); instead of Core.bitwise_and(frame, mask, out); 

It worked!!

I'm posting this for anyone else who is new or is having problems.

Here is my final code:

            //frame is input, out is output            
            Scalar minValues = new Scalar(RFrom, GFrom, BFrom);
			Scalar maxValues = new Scalar(RTo, GTo, BTo);
			Mat mask = new Mat();
            Core.inRange(frame, minValues, maxValues, mask);
			frame.copyTo(out, mask);