Ask Your Question

infoclogged's profile - activity

2018-09-28 09:15:16 -0600 asked a question A simple assignment does not work.

A simple assignment does not work. I am simply trying to assign a value to a matrix. Whats wrong here !? OpenCV complain

2018-09-27 10:30:49 -0600 commented question Remove holes in an image without affecting the borders

great solution ! thank you for the link.

2018-09-27 06:26:10 -0600 asked a question Remove holes in an image without affecting the borders

Remove holes in an image without affecting the borders Following is an example image and I would like to remove all the

2018-09-03 06:46:14 -0600 marked best answer Intersection of two images

I have two images of unequal size -

image description

and

image description

Is there any way that I can get the intersection of the two images such that the final image is

image description

The size of the final image is the same as the size of the ellipse..Maybe pictorally the size doesnt look the same here. The center of the images coincide.

2018-09-01 06:20:58 -0600 commented answer How does cv::randu works on images

thanks for your answer. Would be great if you could notify the developers, since I am new to opencv.

2018-09-01 03:19:45 -0600 marked best answer How does cv::randu works on images

I was expecting a black image from the following code, but instead get a mix of black and white. Can someone explain what is hapenning?

int main(int argc, char *argv[]) {
    cv::Size image_size(1200,200);

    cv::Mat rectangle(image_size, CV_8UC3);

    cv::randu(rectangle, 0, 0);
    cv::imshow("rectangle", rectangle);
    cv::waitKey(0);
}
2018-08-31 09:17:14 -0600 asked a question How does cv::randu works on images

How does cv::randu works on images I was expecting a black image from the following code, but instead get a mix of black

2018-08-31 09:02:52 -0600 commented answer Intersection of two images

this line is not clear - You must copy mask is an image with a size equal to original image example :

2018-08-31 04:04:44 -0600 edited question Intersection of two images

Intersection of two images I have two images of unequal size - and Is there any way that I can get the intersect

2018-08-31 04:03:45 -0600 asked a question Intersection of two images

Intersection of two images I have two images of equal size - and Is there any way that I can get the intersectio

2018-08-19 12:43:24 -0600 marked best answer Finding overlap of two objects in an image using OpenCV

I have this image and would like to find the intersection points of the two objects ( blue vector and red vector ). Unfortunately, the find_intersection method between the vectors from the c++ standard library returns a size 0 because ofcourse there in no overlap of the edges where the two objects meet.

So, is there an elegant way to find the intersecting part of the blue and the red part using OpenCV? Maybe using findContours or CannyEdge or any convolving filter? I am not sure, how I should proceed.image description

2018-08-18 04:34:31 -0600 edited question Finding overlap of two objects in an image using OpenCV

Finding overlap of two objects in an image using OpenCV I have this image and would like to find the intersection points

2018-08-18 04:33:43 -0600 asked a question Finding overlap of two objects in an image using OpenCV

Finding overlap of two objects in an image using OpenCV I have this image and would like to find the intersection points

2018-05-07 03:32:50 -0600 asked a question initialise a 4 channel matrix opencv

initialise a 4 channel matrix opencv I am trying to initialise a 4 channel matrix with row = 1 and columns = 5, but I am

2018-04-23 12:05:16 -0600 edited question storing float in yaml file using FileStorage stores in exponential format

storing float in yaml file using FileStorage stores in exponential format I am storing simple numbers such as 0.1 in the

2018-04-23 12:04:43 -0600 edited question storing float in yaml file using FileStorage stores in exponential format

storing float in yaml file using FileStorage stores in exponential format I am storing simple numbers such as 0.1 in the

2018-04-23 12:03:53 -0600 asked a question storing float in yaml file using FileStorage stores in exponential format

storing float in yaml file using FileStorage stores in exponential format I am storing simple numbers such as 0.9 in the

2018-01-22 04:26:44 -0600 received badge  Nice Answer (source)
2018-01-21 16:26:20 -0600 received badge  Teacher (source)
2018-01-21 16:15:16 -0600 received badge  Necromancer (source)
2018-01-21 16:11:55 -0600 answered a question cv::Vec3f vs cv::Point3f

The way you access thelements. cv::Vec3f is a vector of 3 float elements and hence belongs to the class Vector. You acce

2018-01-21 16:04:25 -0600 asked a question Is it possible to calculate the optical flow magnitude for rigid motion?

Is it possible to calculate the optical flow magnitude for rigid motion? For objects in 2D plane, it is pretty simple to

2018-01-21 16:03:01 -0600 asked a question What is the difference between Optical Flow and CalcMotionHistory() ?

What is the difference between Optical Flow and CalcMotionHistory() ? Somehow both the algorithms ( optical flow using L

2017-10-01 03:13:02 -0600 commented question Decoding color from a 48 bit BGR matrix

the question is when i want to display red, then the matrix values in 8UC3 are cv::Scalar (0,0,255). What is the corres

2017-09-30 14:06:06 -0600 asked a question Decoding color from a 48 bit BGR matrix

Decoding color from a 48 bit BGR matrix I have a matrix where the value is stored as 33088, 33000 and 1. I am aware of 8

2017-09-25 17:13:50 -0600 commented answer Difference between a list of points and list of pixels.

it seems, that the round off is not required as it is done automatically by the function.

2017-09-25 17:12:01 -0600 marked best answer Difference between a list of points and list of pixels.

I am trying to understand the prev_pts and next_pts in the LK algorithm. How can I visualise these list of points intuitively? My expectation was that they are integer values basically pixel locations on the image, a location where a prospective goodFeaturesToTrack was found. Also, this question is related directly to the goodFeaturesToTrack function, where the function returns a feature array in float. How can I actually visualise this intuitively?

2017-09-25 17:12:01 -0600 received badge  Scholar (source)
2017-09-25 11:19:11 -0600 commented answer Difference between a list of points and list of pixels.

ah, i got it regarding the subpixel. Did not know that you can dig further into the resolution. can you please give an e

2017-09-25 03:24:25 -0600 received badge  Supporter (source)
2017-09-25 03:24:03 -0600 commented answer Difference between a list of points and list of pixels.

yes, the points are stored as floats and prev_pts and next_pts return float points. what is meant by subpixel accuracy a

2017-09-25 02:38:56 -0600 received badge  Enthusiast
2017-09-24 07:07:36 -0600 edited question Difference between a list of points and list of pixels.

Difference between a list of points and list of pixels. I am trying to understand the prev_pts and next_pts in the LK al

2017-09-24 07:07:09 -0600 edited question Difference between a list of points and list of pixels.

Difference between a list of points and list of pixels. I am trying to understand the prev_pts and next_pts in the LK al

2017-09-24 07:06:07 -0600 edited question Difference between a list of points and list of pixels.

Difference between a list of points and list of pixels. I am trying to understand the LK algorithm and it returns me a l

2017-09-24 07:05:15 -0600 asked a question Difference between a list of points and list of pixels.

Difference between a list of points and list of pixels. I am trying to understand the LK algorithm and it returns me a l

2017-09-10 03:13:33 -0600 commented answer jpeg library OpenCV not built

so, if WITH_JPEG is OFF, then no jpeg files can be read, although a libjpeg package is installed in the system through a

2017-09-10 01:50:04 -0600 asked a question jpeg library OpenCV not built

jpeg library OpenCV not built My purpose is to build OpenCV with 3rd party jpeg support. By passing -D BUILD_JPEG=ON to

2017-08-22 05:10:15 -0600 commented answer Understanding cv::Mat

thnaks for the hint regarding the index. I have put my own answer for further clarification.

2017-08-22 03:12:03 -0600 marked best answer Understanding cv::Mat
cv::Mat mat34(3,4, CV_32FC(3),cv::Scalar(20,30,40));

mat34.at<float>(3,3) = 1000;

std::cout << mat34.at<float>(3,3) << " and " << mat34.at<cv::Vec<float,3> >(3,3)[0] << std::endl;
std::cout << mat34 << std::endl;

Output

1000 and 0
[20, 30, 40, 20, 30, 40, 20, 30, 40, 20, 30, 40;
 20, 30, 40, 20, 30, 40, 20, 30, 40, 20, 30, 40;
 20, 30, 40, 20, 30, 40, 20, 30, 40, 20, 30, 40]

I dont understand the 3,3 part. Is the element 3,3 not direclty in the matrix? Was expecting to see 1000 somewhere in the entire matrix. Also, how can I access channels using cv::Vec? Since, I am learning I am not looking for alternative solutions, but just understanding how this works.