Ask Your Question

Jorge Diaz's profile - activity

2019-10-11 03:47:31 -0600 commented question OpenCV Single Channel Pixel Value Number Colour

which method are you using to display the pixel values?

2019-10-11 03:33:23 -0600 asked a question Finding required layer in dnn module

Finding required layer in dnn module I am having a problem with the dnn module when trying to implement a caffe project

2019-10-10 19:46:28 -0600 received badge  Necromancer (source)
2019-10-10 09:52:14 -0600 answered a question Applying filter with a Mask

You are trying to apply this with multiple channels which is as easy as splitting the image into the different channel u

2019-10-10 09:25:11 -0600 received badge  Necromancer (source)
2019-10-10 08:38:30 -0600 received badge  Supporter (source)
2019-10-10 08:32:30 -0600 answered a question No idea why the script gets this error code

I sounds like your camera is feeding images that are in a different format of what you are expecting or that the camera

2019-10-10 08:20:58 -0600 marked best answer Segment color regions

I am trying to make a script that counts the number of regions with similar colour on an image. The idea is to count the number of regions in which a colour is used. For instance, if the image contains two colours, it should output 2 but if the image is made of one colour and a line of a different colour passing through the middle it should output 3. An important point is that the images could contain gradients of a similar colour and that should not be counted as a region.

This should output 3 regions Two coloured image

This should output 5 regions Multicoloured image

I have tried a couple of implementations. Initially, by brute forcing it with k means and finding the right k which takes for ever with images with even a discrete amount of hue (from HSV). I also tried with watershed algorithm but found that is not very reliable. Thresholding was not very useful either.

Is there a more efficient way to compute it?

2019-10-10 08:20:58 -0600 received badge  Scholar (source)
2019-10-10 08:20:43 -0600 received badge  Enthusiast
2019-09-27 20:43:33 -0600 received badge  Nice Answer (source)
2019-09-27 05:22:16 -0600 received badge  Teacher (source)
2019-09-27 03:25:30 -0600 received badge  Self-Learner (source)
2019-09-27 03:12:04 -0600 answered a question Segment color regions

In the end I solved this issue using contrast gradients to delimit the areas to apply watershed. It doesn't work perfect

2019-09-26 08:05:37 -0600 commented question Segment color regions

My answer is on the way. Apparently I can't answer before 2 days..:shrug:

2019-09-25 07:36:10 -0600 commented question Segment color regions

@Kitnos Thank you very much for your comment but the objective is to generalise the algorithm. If I had the colours bein

2019-09-25 04:29:53 -0600 commented question Segment color regions

@Kitnos An interesting idea, but that would mean I know the colours before hand but I am searching for a general algorit

2019-09-25 04:29:42 -0600 commented question Segment color regions

@Kitnos An interesting idea, but that would mean I know the colours before hand but I am searching for a general algorit

2019-09-24 08:55:17 -0600 asked a question Segment color regions

Segment color regions I am trying to make a script that counts the number of regions with similar colour on an image. Th