c++ - how to fill color into image, by considering small matrix size 3*3 or 6*6? in opencv -


Considering the small matrix of 3 * 3, how can I fill the necessary picture color of type, But the correct answer could not be found to apply, I hope thanks in advance, or people can help better, otherwise if possible, upload some links.

What type of VAT can I fill the required image?

If you want to change the value of mat image, you can do it as follows:

  • grayscale ( 8UC1 ):

      uchar intensity = Img.at & lt; Uchar & gt; (Y, x) = value_you_want_to_fill;    
  • Color image (the default format given by BGR color sequence, imread ): img.at

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -