Ask Your Question

Tom Anderson's profile - activity

2017-04-14 15:11:47 -0600 received badge  Notable Question (source)
2016-03-30 06:56:39 -0600 received badge  Popular Question (source)
2012-09-12 10:55:50 -0600 received badge  Nice Answer (source)
2012-09-12 10:52:12 -0600 received badge  Nice Question (source)
2012-09-11 11:51:11 -0600 received badge  Teacher (source)
2012-09-11 09:02:30 -0600 received badge  Student (source)
2012-09-11 09:01:10 -0600 received badge  Supporter (source)
2012-09-11 08:57:23 -0600 commented answer Create a mask for NaN cells

Looks good. Then I just need to use:

replacements.copyTo(matrix, mask);

2012-09-11 08:56:28 -0600 received badge  Scholar (source)
2012-09-11 08:41:37 -0600 commented answer comments in OpenCV source code

Ooh, time to update. That quote "We are going to organize the process of adopting pull requests a bit later." is from: http://code.opencv.org/projects/opencv/wiki

2012-09-11 08:33:39 -0600 answered a question comments in OpenCV source code

Further to Adi's answer, there is a github fork of OpenCV. You could simply fork it, add your comments to the code in your fork. When you found others who also wanted to help, they could fork your fork and push changes up to you, and it would be up to you to merge the changes into your fork.

This is the OpenCV github mirror. https://github.com/itseez/opencv

The OpenCV maintainers say that they will eventually respond to pull changes from GitHub, stating, "We are going to organize the process of adopting pull requests a bit later."

The advantage of Github over a Wiki is that the code is readily downloaded in runnable form, and secondly you can easily keep updated with changes over multiple computers. The disadvantage would be that you would no longer be creating your own site, you would be beholden to the Github overlords, but forks on GitHub are free.

2012-09-11 08:21:04 -0600 received badge  Editor (source)
2012-09-11 08:18:55 -0600 asked a question Create a mask for NaN cells

I have a cv::Mat (type CV_32FC1) that contains some entries that are NaN. Basically I want to center all NaN in a matrix to a known value that dependent on which cell it is. So if both matrix and replacements are of equal dimensions, I'd like a function like:

cv::patchNaNs(matrix, replacements);

This method would replace any NaN in cell i,j from matrix with the corresponding value in cell i,j from replacements.

So I'm thinking I could do this with masks. How can I go about creating a mask that identifies those NaN entries? I tried threshold but none of the comparisons seem to be helpful for this purpose. Is there some simple thing that I'm overlooking?