2020-12-21 10:12:47 -0600 | commented answer | How can I check if the monitor is connected in Windows / Linux? You can avoid installing or linking extra libraries by simply checking the DISPLAYenvironment variable: std::getenv("DIS |
2020-12-21 10:11:59 -0600 | commented answer | How can I check if the monitor is connected in Windows / Linux? You can avoid installing or linking extra libraries by simply checking the DISPLAYenvironment variable: std::getenv("DIS |
2020-12-21 10:10:43 -0600 | answered a question | How can I check if the monitor is connected in Windows / Linux? In Linux you should be able to check the display availability by retrieving the environment variable DISPLAY #if __linu |
2016-03-08 10:39:42 -0600 | asked a question | What is the correct way of getting a pointer to an image/cv::Mat row? The question in general is: What is the correct way of getting a pointer to an image/cv::Mat row? Background: I was checking the code of CCStatsOp inside /modules/imgproc/src/connectedcomponents.cpp I saw that to get a pointer to an image row the following code is used: But I wonder: Wouldn't the following be more efficient? |
2015-01-16 03:08:07 -0600 | commented question | Face Detection You need something like this: http://answers.opencv.org/question/12... |
2015-01-16 03:02:26 -0600 | received badge | ● Enthusiast |
2015-01-15 09:25:24 -0600 | answered a question | Additional LIBs (CUDA,JNI) with OpenCV by MinGW instead of VisualStudio VS(any) As regards MinGW, unless I understand wrongly, nowadays it should be supported by CUDA : http://docs.nvidia.com/cuda/cuda-comp... http://docs.nvidia.com/cuda/cuda-comp... So, it should be a matter of having the OpenCV developer implement some of the modifications, or become an OpenCV contributor and implement them :) |
2015-01-15 09:23:19 -0600 | received badge | ● Necromancer (source) |
2015-01-15 04:19:18 -0600 | answered a question | About umat How to convert Mat to UMat: http://stackoverflow.com/a/27530966/2... |
2015-01-15 04:12:28 -0600 | commented question | About umat @itay In fact, an UMat might be at some point to the GPU, but the point is more than on runtime an OpenCV method will decide to process an UMat on CPU or GPU depending on the availability, for example, of an OpenCL implementation of that method. |
2015-01-15 04:11:07 -0600 | commented answer | cv::fastNlMeansDenoising does not return @Tankard Very well! If you problem is solved, can you please accept the answer? (Tag under the answer score) |
2015-01-15 04:09:04 -0600 | answered a question | About umat You can find some useful information here: http://stackoverflow.com/questions/27... |
2015-01-14 09:27:34 -0600 | commented answer | cv::fastNlMeansDenoising does not return I see... Try instead: |
2015-01-14 08:00:42 -0600 | commented answer | cv::fastNlMeansDenoising does not return @Tankard Print the value of norm. I would guess that alpha has to be 256/norm, or something proportional to that |
2015-01-13 09:55:52 -0600 | commented answer | cv::fastNlMeansDenoising does not return If you are looking for a fast solution, you can make |
2015-01-13 09:48:13 -0600 | asked a question | Changing order of library linking for OpenCV tests Referring to this reported bug http://code.opencv.org/issues/4108#no..., does anybody know on which CMake files to act to change the order in which library are linked for building the tests? |
2015-01-13 06:42:14 -0600 | commented question | Canny (OCL, 3-beta) can not detect connected contour of black square on a white background. BTW, did you build 32bit or 64bit? In my case, 32bit |
2015-01-13 06:19:47 -0600 | commented question | Canny (OCL, 3-beta) can not detect connected contour of black square on a white background. @Vit I confirm 100% your findings: OpenCV3 OpenCL implementation of Canny it's buggy. (Although is 4 times faster) |
2015-01-12 09:55:36 -0600 | commented question | Canny (OCL, 3-beta) can not detect connected contour of black square on a white background. BTW: The answer to: "Why so large threshold" is that when using 5 as kernel size of Canny, at an intermediate stage you get a Sobel image computed with the mask 5 parameters, which has much larger multipliers, and of course convolves a larger number of pixels. |
2015-01-12 09:45:38 -0600 | answered a question | cv::fastNlMeansDenoising does not return In this case, you can simply use normalize to enhance the contrast. |
2015-01-12 09:36:19 -0600 | commented question | Canny (OCL, 3-beta) can not detect connected contour of black square on a white background. Can you share on which hardware and driver this happen? Did you test with OpenCV 2.4? The code would be only slightly different, example: Which works correctly for me by the way |
2015-01-12 09:30:37 -0600 | received badge | ● Critic (source) |
2015-01-08 07:30:50 -0600 | commented question | how to calculate the mean value of multiple pictures I think what you meant was "How can I BLEND 10 images". You want the mean value across the 10 images for each pixel. |
2014-04-09 09:20:41 -0600 | asked a question | Computing filters on sub images: border handling I have the following use case. I preprocess an image so that I know for which parts that I want to do the complete (expensive) processing. I therefore create several cv::Mat from my main cv::Mat and do filtering only on those. However, on boundary pixels I know the filter could very nicely go across the border of the sub-cv::Mat I have created, and compute the exact value for my filtering also for the border pixels. So my question is: Is there among the border handling modes a way to say to simply peak a pixel outside the cv::Mat? It seems only thing like constant, mirror or wrap are available... |
2014-02-24 07:48:16 -0600 | commented question | How to Expand contour similar dilatation of contour? Do you already have an efficient way to dilate a contour, with the initial contour in the form of a vector of points? |
2013-10-18 06:35:48 -0600 | answered a question | How can I specify row alignment reading an image or creating Mat object? You can replace with (Note for colRange from the documentation: Start and end column of the extracted submatrix. The upper boundary is not included) To have the image loaded directly as you desire, you would have to go one level down to the imdecode method, and test if giving the roiImg created as you did would work as expected, loading the image aligned. Of course, you need to know the image size in advance, otherwise you will have to write your own version of imdecode. |
2013-10-14 15:03:24 -0600 | received badge | ● Student (source) |
2013-10-14 10:16:54 -0600 | asked a question | Tilted integral image + other general considerations on integral image Note: While investigating it finally ended up that this is not really a question, but I think it might be useful to share my findings :) I wanted to compute the integral image using the function library, in order to implement fast Gaussian filters according to the work published here: http://www.csse.uwa.edu.au/~pk/research/matlabfns/#integral, and also other filters. I have seen, though, that there's no way I can avoid computing the squared sum if I want to compute the integral image for the tilted image. http://docs.opencv.org/modules/imgproc/doc/miscellaneous_transformations.html#integral The rationale of this choice is that the integral image is basically only used in the Haar detection, and that there the sum of squared pixel is used to perform "Fast lighting correction". However this means that if you don't need the squared integral image you have to come up with your own implementation. BTW, I went to see the implementation on the trunk (integral_ in sumpixels.cpp), and it seems there's no tbb implementation of the integral image computation, while the function could be parallelized to some extent. Another interesting finding is that integral image might overflow for image sizes >8Mb: taking a completely white image, the overflow happens when 2^8 * W * H > 2^31 (not 32, as one bit is used for keeping the sign, as the integral image could be computed for signed images), that is W * H > 2^23 = 8 * 2^10 * 2^10 |
2013-08-08 14:15:32 -0600 | received badge | ● Necromancer (source) |
2013-06-21 08:45:08 -0600 | received badge | ● Editor (source) |
2013-06-21 08:44:14 -0600 | received badge | ● Supporter (source) |
2013-06-21 08:43:44 -0600 | answered a question | 2.4.5 with TBB windows x64 (Windows 7) installation problem This should address your problem: http://stackoverflow.com/q/16767464/2436175 |