Ask Your Question

Debian LeoPragi's profile - activity

2017-07-12 05:16:28 -0600 commented question Pixel multiplication gives different result

I assumed that, to create a image(Mat object) with CV_16UC1 type that you have specified and assigned the manipulated old Mat matrix value to new image Mat matrix value. Still not working. However if value exceed 255 than i must saturate to 255, producing a image of white.

2017-07-12 04:16:52 -0600 commented question Pixel multiplication gives different result

Done what you have said. Now I noticed that after multiplication values exceeds 255. So saturation must take place. According to algorithm I(x,y)= min (max (round (r), 0), 255) in this page [http://docs.opencv.org/2.4/modules/co...] resultant value should be 255. So white image have to come. Still we have negative image here. Why?

In algorithm round is just going to give the same number right?

2017-07-12 03:20:25 -0600 commented question Pixel multiplication gives different result

Okay berak! Thanks...But i just wanted to know. For a intuition Multiplying every pixels with 255 must give a white image right?

2017-07-12 02:08:12 -0600 commented question Pixel multiplication gives different result

First thing i am not trying to inverse the image. I am new to openCV, So in a intention to workout the tutorials, I trying to multiply a pixel by a value to break down the problem (from the tutorials for masking http://docs.opencv.org/2.4/doc/tutori...). Then i got inverse image of input image. Next thing table is just reducing the image value or like round up. I use uchar* to access image array continuously like just shown in the tutorials.

2017-07-12 01:27:27 -0600 asked a question Pixel multiplication gives different result

In detail I read a image in c++ and multiplied its pixel of 3 channel BGR value with 255, It gives me resultant image as negative image. In this case, if you are multiplying a pixel value with 255, it should be saturated to white have to give [255, 255, 255]. But negative image have different values. The following code is,

uchar *p;
for (int i = 0; i < nRows; i++){
    p = image.ptr<uchar>(i);
    for (int j = 0; j < nCols; j++){
        p[j] =  table[p[j]] * 255;
        //cout << (int)p[j] * 255 <<" ";
    }
}

image description

So I test a user-defined Mat with one pixel value of 3 channel BGR value with 255, producing result of [255, 255, 255].

Mat sample = Mat(1, 1, CV_8UC3);
uchar *l;
l = sample.data;
for (int i = 0; i < sample.rows * sample.cols; i++){
    cout << sample * 255;
    cout << sample;
}
2017-07-10 01:16:22 -0600 asked a question Kali linux in VMWare and Video capture

I am installing Kali Linux in VMware for using Opencv. Mean while i want to know if there is any problem to access system camera with kali linux through virtual Machine(For live video capture).