Ask Your Question

theaniolad's profile - activity

2019-01-21 21:28:07 -0500 received badge  Teacher (source)
2018-04-18 09:54:05 -0500 commented question ConnectedComponents-like function for grayscale image

Ok, yeah it's easier to just show it than to describe it: Pretty much this picture as grayscale and without the lines se

2018-04-18 09:52:51 -0500 commented question ConnectedComponents-like function for grayscale image

Ok, yeah it's easier to just show it than to describe it: Pretty much this picture as grayscale and without the lines se

2018-04-18 01:22:07 -0500 commented question ConnectedComponents-like function for grayscale image

Thank you for answer! I'm actually asking because I don't think my solution is very reliable and I would have imagined t

2018-04-16 04:41:37 -0500 edited question ConnectedComponents-like function for grayscale image

ConnectedComponents-like function for grayscale image I'm looking for help, because I wasn't successful finding a functi

2018-04-16 04:41:23 -0500 edited question ConnectedComponents-like function for grayscale image

ConnectedComponents-like function for grayscale image I'm looking for help, because I wasn't successful finding a functi

2018-04-16 04:39:02 -0500 edited question ConnectedComponents-like function for grayscale image

ConnectedComponents-like function for grayscale image I'm looking for help, because I wasn't successful finding a functi

2018-04-16 04:37:08 -0500 edited question ConnectedComponents-like function for grayscale image

ConnectedComponents-like function for grayscale image I'm looking for help, because I wasn't successful finding a functi

2018-04-16 04:33:49 -0500 edited question ConnectedComponents-like function for grayscale image

ConnectedComponents-like function for grayscale image I'm looking for help, because I wasn't successful finding a functi

2018-04-16 04:33:10 -0500 asked a question ConnectedComponents-like function for grayscale image

ConnectedComponents-like function for grayscale image I'm lookinf for help, because I wasn't successful finding a functi

2017-10-27 08:07:59 -0500 edited answer Perform functions on a ROI

To your second question how to perform a function on the original Image: By default, OpenCV works with the original Mat

2017-10-27 08:07:19 -0500 edited answer Perform functions on a ROI

To your second question how to perform a function on the original Image: By default, OpenCV works with the original Mat

2017-10-27 07:51:02 -0500 edited answer Perform functions on a ROI

To your second question how to perform a function on the original Image: By default, OpenCV works with the original Mat

2017-10-27 07:49:27 -0500 edited answer Perform functions on a ROI

To your second question how to perform a function on the original Image: By default, OpenCV works with the original Mat

2017-10-27 07:48:51 -0500 edited answer Perform functions on a ROI

To your second question how to perform a function on the original Image: By default, OpenCV works with the original Mat

2017-10-27 07:35:28 -0500 answered a question Perform functions on a ROI

To your second question how to perform a function on the original Image: By default, OpenCV works with the original Mat

2017-09-25 06:58:36 -0500 edited answer Image of Graph to data: how to extract data from a curve on an image of a graph?

Just a quick answer. Sorry for the rough code snippets. They are untested and incomplete but might give a rough idea. So

2017-09-25 06:56:40 -0500 edited answer Image of Graph to data: how to extract data from a curve on an image of a graph?

Just a quick answer. Sorry for the rough code snippets. They are untested and incomplete but might give a rough idea. So

2017-09-25 06:29:32 -0500 edited answer Image of Graph to data: how to extract data from a curve on an image of a graph?

Just a quick answer. Sorry for the rough code snippets. They are untested and incomplete but might give a rough idea. So

2017-09-25 06:27:15 -0500 answered a question Image of Graph to data: how to extract data from a curve on an image of a graph?

Just a quick answer. Sorry for the rough code snippets. They are untested and incomplete but might give a rough idea. So

2017-05-05 00:01:14 -0500 received badge  Enthusiast
2017-04-28 08:44:26 -0500 commented question OpenCVs OpenCL doesn´t find any device but the code executed with UMAT runs faster

I have both a CUDA and a non-CUDA build and the same behavior and problems with both builds.

2017-04-28 04:29:21 -0500 commented question OpenCVs OpenCL doesn´t find any device but the code executed with UMAT runs faster

Im observing a similar behavior as well: If I use the nVidia-Tool for detecting OpenCL devices, three devices are shown on my laptop: CPU, Intel GPU and nVidia GPU. If I use the device search of OpenCV only the Intel GPU shows up on my work laptop and only the nVidia GPU shows up on my private laptop. Both laptops have nearly identical setups (i7-6820HQ with Quadro M100M and i7-4720HQ with GTX960M).

2017-04-26 11:00:09 -0500 commented question UMAT refcount error with setUseOpenCL(false)

Thank you for your response! The error occurs when I set OpenCL to false which - as far as I understand - will make OpenCV call the Mat functions internally so that CopyTo() should be a pure CPU to CPU copy with no GPU involved. If I set OpenCL to true and use the GPU, the whole code works fine. The copying and all lines below work fine except for the convertTo() line.

2017-04-26 04:25:20 -0500 received badge  Supporter (source)
2017-04-26 03:45:43 -0500 received badge  Student (source)
2017-04-26 03:45:13 -0500 received badge  Editor (source)
2017-04-26 03:38:13 -0500 asked a question UMAT refcount error with setUseOpenCL(false)

Currently I'm rewritting some code from Mat to UMat that will hopefully run both with or without OpenCL depending on the OpenCL flag. Now I'm getting a refcount error I don't quite understand. It only shows up if setUseOpenCL is set to false.

(Since the images I work with are around 196Megapixel-RGB-images I do prefer avoiding deep copies as much as possible and I would like to understand why in the code below I'm not allowed to write into the orginal UMat.)

By the way: is there an easy way to simply convert any image (gray, bgr, bgra) to gray or even directly to CV_32FC1 or do I always have to manually check if the image is bgra or bgr or gray and then do a conversion?


main()
{
   ocl::setUseOpenCL(false); //myFoo() crashes only if this is set to false.
  myFoo(myimg, outImg);
}

//in this function the line convertTo() crashes if the input UMat is the same as the output UMat and setUseOpenCL is set to false void myFoo(InputArray img_ext, OutputArray img_Out) { UMat gray; //if I use Mat instead of UMat it doesnt crash. img_ext.copyTo(gray); //I also tried using getUMat(), but in both cases convertTo() below crashes.

cvtColor(gray, gray, COLOR_BGR2GRAY); //doesn't crash

UMat gray2; gray.convertTo(gray2, CV_32FC1); //this doesnt crash

gray.convertTo(gray, CV_32FC1); //crashes with error message: OpenCV Error: Assertion failed (u->refcount == 0) in cv::StdMatAllocator::deallocate