Ask Your Question

Philip's profile - activity

2020-01-28 11:20:21 -0500 received badge  Famous Question (source)
2018-12-13 05:29:56 -0500 received badge  Good Question (source)
2016-11-03 14:20:45 -0500 received badge  Notable Question (source)
2016-08-24 05:55:37 -0500 received badge  Taxonomist
2016-01-10 13:41:21 -0500 received badge  Nice Question (source)
2015-09-22 06:08:03 -0500 received badge  Popular Question (source)
2015-04-03 10:25:44 -0500 received badge  Teacher (source)
2015-02-23 11:40:07 -0500 received badge  Famous Question (source)
2015-01-27 07:09:32 -0500 received badge  Necromancer (source)
2015-01-27 07:09:09 -0500 answered a question Building OpenCV_contrib for OpenCV 3, Windows GUI

I found that I can build it by just following what you did then remove any project which fails to compile. In my case, right now, only one project failed to compile so I had to remove it and its two test projects.

2014-03-14 04:15:02 -0500 received badge  Notable Question (source)
2013-11-23 02:02:31 -0500 received badge  Popular Question (source)
2013-01-30 08:58:52 -0500 commented answer Convert RGBA byte buffer to OpenCV image?

Can you tell me why?

2013-01-29 21:28:36 -0500 asked a question Convert RGBA byte buffer to OpenCV image?

I have a byte buffer ( unsigned char * ) of RGBA format, I wish to use this image data in OpenCV, use it as a IplImage. How to convert from this byte buffer to IplImage?

Think I have worked this out myself, still testing.

IplImage* img = cvCreateImage( cvSize(width,height), IPL_DEPTH_8U, 4);
cvSetData(img, buffer, width*4);
2012-12-18 21:35:35 -0500 commented answer Detecting thick edges

Has anyone found any source code for Pealing?

2012-12-13 23:12:03 -0500 asked a question Text on a gradient background, how to remove the background?

Hi, I have some text on a gradient background, this is a PNG image captured from a HTML rendered webpage of text. The background of this page is a gradient.

How can I go about removing the gradient background from the image and retain the text?

2012-12-11 07:05:50 -0500 commented answer How to find the two most dominant colors in an image?

There is aliasing between the font and the background, would this approach work better due to the aliasing being mixed colors between the foreground and background?

2012-12-11 04:54:37 -0500 asked a question How to find the two most dominant colors in an image?

I have an image of some white text on a blue background. Actually the text could be any color and the background color be any color. The text has some aliasing on it as well. I wish to find the color of the text, so the background color would be one dominant color and the text color is another dominant color. How I can find these two colors?

Really in general I would like to know how to find the two most dominant colors in the image.

2012-11-15 23:59:01 -0500 asked a question How to find the path of least change in pixel value between two points in an image?

I have a image and two points in the image, a and b. How can I use opencv to find a path between the two points which has the least amount of change in pixel value along that path? That is, along that path there is only a minimal change in pixel value from a to b? There are many ways to get from a to b, but some of these ways are going to have more change in pixel value than others.

2012-10-26 09:51:58 -0500 commented answer Remove buttons from their background so I can re-use button image

I used grabCut after the findContours and this seems to work well in about 75% of cases, I have not fine tuned it by altering parameters yet. In most cases where it is not working its due to the findContours and associate code not finding the bounding rectangle correctly.

2012-10-26 09:51:56 -0500 received badge  Scholar (source)
2012-10-17 22:35:35 -0500 commented answer Remove buttons from their background so I can re-use button image

I'll try this tomorrow and let you know how it goes.

2012-10-15 08:30:05 -0500 received badge  Supporter (source)
2012-10-15 08:30:02 -0500 received badge  Supporter (source)
2012-10-15 03:22:34 -0500 received badge  Student (source)
2012-10-15 00:06:29 -0500 received badge  Editor (source)
2012-10-14 23:16:38 -0500 asked a question Remove buttons from their background so I can re-use button image

How to use OpenCV (Python script) to remove the background from these button images so that only the button remains? I wish to be able to re-use the button image to place it onto a different background and not sure what OpenCV methods to use. Here are some example button images:

image description

image description

image description

Here is a zip file with many button images to try:

Note that buttons have the following properties.

  1. Their background may not be completely flat with one color, it may be a pattern or a gradient.
  2. They have a corner, the corner may have a radius or it may be square.
  3. The button will take up most of the image, at least more than 1/2 the width and height of the image.