Re: how find amount of different values in a matrix?
- From: dpb <none@xxxxxxx>
- Date: Mon, 23 Jul 2007 14:56:21 -0500
Adam Chapman wrote:
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?
hist or histc, maybe?
--
.
- References:
- how find amount of different values in a matrix?
- From: Adam Chapman
- how find amount of different values in a matrix?
- Prev by Date: how find amount of different values in a matrix?
- Next by Date: Re: how find amount of different values in a matrix?
- Previous by thread: how find amount of different values in a matrix?
- Next by thread: Re: how find amount of different values in a matrix?
- Index(es):
Relevant Pages
|
Loading