how find amount of different values in a matrix?
- From: Adam Chapman <adam.chapman@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 23 Jul 2007 12:53:56 -0700
Hello,
I'm trying to find the amount of different individual colours in an
image.
The image is in RGB format so pixel colour will be defined by
image(:,:,1:3).
The only way I can think of doing this is by searching through the
image one pixel at a time and recording the colour of the current
pixel, then checking to see if it has already been sen in a previous
pixel.
Surely there must be a faster way
any ideas?
Thanks very much for any help offered,
Adam
.
- Follow-Ups:
- Re: how find amount of different values in a matrix?
- From: us
- Re: how find amount of different values in a matrix?
- From: Randy Poe
- Re: how find amount of different values in a matrix?
- From: Rick Rosson
- Re: how find amount of different values in a matrix?
- From: Walter Roberson
- Re: how find amount of different values in a matrix?
- From: dpb
- Re: how find amount of different values in a matrix?
- Prev by Date: Any elegant way to handle subsasgn for class arrays
- Next by Date: Re: how find amount of different values in a matrix?
- Previous by thread: Any elegant way to handle subsasgn for class arrays
- Next by thread: Re: how find amount of different values in a matrix?
- Index(es):
Relevant Pages
|
Loading