Re: find largest cluster?
- From: Martin Brown <|||newspam|||@nezumi.demon.co.uk>
- Date: Thu, 10 Apr 2008 10:17:16 -0700 (PDT)
On Apr 9, 5:22 pm, bugbear <bugbear@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Martin Brown wrote:
On Apr 9, 11:35 am, 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.
It isn't clear what you mean by "largest" here. If you mean most
frequently occurring colour
yes, that's what I want.
Tolerances would require prescaling the r,g,b values to generate a
suitable unique index tag for each colour you consider acceptably
distinct.
Hmm. That would work, although isn't quite the same
as clustering on a "visible difference" measure.
Is this a standard problem, or does
anyone have an ah-hah algorithm?
An alternative for large images is to create a full histogram of all
the values that occur more than once.
I'm actually trying to implement "majority voting" on corresponding
pixels of a stack of aligned photographs.
Do you have any particular reason to believe this approach will work
any better than median filtering the pixel values that you have for
each cell. Under a wide range of conditions and noise distributions
the median should give pretty good results. Only if you have reason to
expect huge systematic biasses in some pixels would majority voting
help.
For each pixel, I want the (RGB) value that the majority of the photographs
agree on. Since lighting conditions vary with time, and no camera
is perfect, I'll need the tolerance.
You may be better off working in YUV space (rather than RGB) or some
other representation.
Are you trying to decrease the number of colours in an image by any
chance to palettise it?
Regards,
Martin Brown
.
- References:
- find largest cluster?
- From: bugbear
- Re: find largest cluster?
- From: Martin Brown
- Re: find largest cluster?
- From: bugbear
- find largest cluster?
- Prev by Date: movement vector from video
- 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
|