Re: find largest cluster?



On Apr 9, 8:35 pm, bugbear <bugbear@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Given a list of RGB (or other triple) colours,
rgb0, rgb1... rgbN I would like to be able
to detect what the largest "common" colour.

well, the problem from this point of view is trivial:
create a vector v, where v[0]=0, v[1]=0 ...v[N]=0;
for each pixel p of the image, "if (p==rgb_i) v[i]++";
and after order v.
The complexity is N*log(N).

But what I think you are looking for is a criteria to put together
different rgb values. I cannot be helpful on that :-/

cheers
Mauro
.



Relevant Pages

  • Re: find largest cluster?
    ... rgb0, rgb1... ... rgbN I would like to be able ... to detect what the largest "common" colour. ... I think this would need to be within a tolerance ...
    (sci.image.processing)
  • find largest cluster?
    ... rgb0, rgb1... ... rgbN I would like to be able ... to detect what the largest "common" colour. ... anyone have an ah-hah algorithm? ...
    (sci.image.processing)
  • Re: find largest cluster?
    ... rgb0, rgb1... ... rgbN I would like to be able ... to detect what the largest "common" colour. ... the lists will be small ...
    (sci.image.processing)