Re: find largest cluster?
- From: mauro <mauro.australia@xxxxxxxxx>
- Date: Wed, 9 Apr 2008 19:00:05 -0700 (PDT)
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
.
- References:
- find largest cluster?
- From: bugbear
- find largest cluster?
- Prev by Date: Re: find largest cluster?
- Next by Date: Re: find largest cluster?
- Previous by thread: Re: find largest cluster?
- Next by thread: Re: find largest cluster?
- Index(es):
Relevant Pages
|