ofxCv Mat::ones

i am trying to will a Mat with ofxCV with just ones.

  
  
  
cv::Mat maskedMat;  
maskedMat = Mat::ones(200,600,CV_8UC3)  
//or   
//Mat(200,600,CV_8UC3,Scalar(1,1,1));  
  

but both return a black image when i draw the Mat.

?

thx.

1 in an unsigned char image is almost black, since the max value is 255. if you want to fill the mat with white i guess:

  
  
Mat(200,600,CV_8UC3,Scalar(255,255,255));    
  

should do

ok that makes sense. for some reason i was stuck in thinking of values between 0 - 1.

which i guess also applies to mat::ones

thanks a lot.