Ask Your Question

Na_Osi's profile - activity

2018-10-23 15:53:06 -0600 answered a question Problem with brightness changing by pixel-access. Mat.

Hello! I am sorry, but did not answer early. Correct code in this case: float c = (float)(n / 50); for (int i = 0; i &

2018-09-12 10:02:38 -0600 received badge  Enthusiast
2018-09-09 13:12:07 -0600 commented question Problem with brightness changing by pixel-access. Mat.

"are you aware, that there's a "stiching" module for this ?" i heard about this. but did not use. Thank you for ideas

2018-09-09 12:42:11 -0600 commented question Problem with brightness changing by pixel-access. Mat.

"maybe you need to explain this better !" two images of my panorama has area(space,place,zone), there last 25 pixels of

2018-09-09 12:41:55 -0600 commented question Problem with brightness changing by pixel-access. Mat.

two images of my panorama has area(space,place,zone), there last 25 pixels of left img = first 25 pixels of right img. i

2018-09-09 12:21:20 -0600 commented question Problem with brightness changing by pixel-access. Mat.

Thank you for help! "what are you trying to achieve here ? (to avoid the obvious XY problem)" I am trying to unite two

2018-09-09 11:45:40 -0600 asked a question Problem with brightness changing by pixel-access. Mat.

Problem with brightness changing by pixel-access. Mat. Hello! I am trying to mix two RGB images with smooth change of b

2018-09-08 04:11:28 -0600 received badge  Supporter (source)
2018-09-08 01:10:30 -0600 commented answer The complexity of the pixel-access in Mat.

Thank you for answer! Really, my image has 3 channels. but its colour is brown.I thought that it means the image had 1

2018-09-08 01:05:58 -0600 commented answer The complexity of the pixel-access in Mat.

Thank you for answer! really, my image has 3 channels. but its colour is brown.I thought that it means the image had 1 c

2018-09-08 01:04:31 -0600 marked best answer The complexity of the pixel-access in Mat.

Hello!

I am new in openCV and try to change colour of some pixels my matrix. if i work with new "Mat::zeros" matrix created by me, my code works (type of elements is CV_8UC1). image description

If i work with some image, code does not work correct. image description

But why? is it specific trait of image's depth or channels? can t get some properties of image like depth and number of channels.

The original image is here.

Please help me to make it clear.

The code for changing colour is:

for (int i = 0; i < img.rows; i++)
        for (int j = 0; j < img.cols; j++)
            if ((i % 20 == 10 && j % 2 == 1) ||
                (j % 50 == 25 && i % 2 == 1))
            {
                img.at<uchar>(i, j) = 255;
            }
2018-09-08 01:04:31 -0600 received badge  Scholar (source)
2018-09-07 16:05:40 -0600 asked a question The complexity of the pixel-access in Mat.

The complexity of the pixel-access in Mat. Hello! I am new in openCV and try to change colour of some pixels my matrix.