First time here? Check out the FAQ!
answered 2014-11-24 03:00:39 -0600
What is the datatype of your matrix? (If you want it to be white, a image.setTo(255) for an CV_8UC1-image does the job)
Have you maybe passed your image by value instead of reference?