3D Histograms of RGB ;color clustering software
Does anyone know of any software that can generate a 3d histogram of the frequency,or at least presence,of all of the pixels in RGB color space.What I am looking for would be a 256^3 unit cube wherin there would either be a dot denoting presence,or a color denoting fequency,at the position representing that color.For example,if black was present in the image,there would be a dot at position (0,0,0).Any information would be appreciated.
On edit:I have just discovered that I am looking for is called color clustering software.
[ 11-21-2002: Message edited by: Rick1138 ]</p>
On edit:I have just discovered that I am looking for is called color clustering software.
[ 11-21-2002: Message edited by: Rick1138 ]</p>
Comments
[quote]Originally posted by Rick1138:
<strong>Does anyone know of any software that can generate a 3d histogram of the frequency,or at least presence,of all of the pixels in RGB color space.What I am looking for would be a 256^3 unit cube wherin there would either be a dot denoting presence,or a color denoting fequency,at the position representing that color.For example,if black was present in the image,there would be a dot at position (0,0,0).Any information would be appreciated.
On edit:I have just discovered that I am looking for is called color clustering software.
[ 11-21-2002: Message edited by: Rick1138 ]</strong><hr></blockquote>
I can write a simple little app to do this, I'll try to do it after work this evening...
<hr></blockquote>
OK cool,I can send you the a-life simulation I am working on.
[quote]This probably isn't what you're talking about, but the ColroSync Utility can show the 3D color space of any saved color profile... <hr></blockquote>
I would be interested in looking at that,I tried to open my profiles in the ColorSync utillity but they were all grayed out.
To look at the gamut of an image, drag it into the upper pane of the app. Then, you can rotate the color cube around with your mouse. You can zoom in/out with the scrollwheel, or using some menu item.
[ 11-25-2002: Message edited by: blixa ]</p>
The reason I want it is too see how color spaces cluster when the color harmonies are aesthically pleasing.I have been trying to write algorithms for an a-life simulation that generate harmonious color combinations.The simulation is available here:
<a href="ftp://jarosh.net/pub/Simulation.tgz" target="_blank">ftp://jarosh.net/pub/Simulation.tgz</a>
It runs in the freeware breve simulation enviroment,which is available here:
<a href="http://www.spiderland.org/breve/" target="_blank">http://www.spiderland.org/breve/</a>
Included in the file is a graphic tile.sgi,which has to be put in the home directory for it to be displayed properly (it is the texture of the floor) or you can change the path at line 600 in the simulation file.Unfortunately this is the only way to do this,I apologize for the difficulty.
Sounds like a cool project.
[quote]Originally posted by Rick1138:
<strong>Wow,thanks I really appreciate it,that is exactly what I am looking for.There is one problem-it doesn't run on my system it crashes on startup.I'm using 10.1.2.
The reason I want it is too see how color spaces cluster when the color harmonies are aesthically pleasing.I have been trying to write algorithms for an a-life simulation that generate harmonious color combinations.The simulation is available here:
<a href="ftp://jarosh.net/pub/Simulation.tgz" target="_blank">ftp://jarosh.net/pub/Simulation.tgz</a>
It runs in the freeware breve simulation enviroment,which is available here:
<a href="http://www.spiderland.org/breve/" target="_blank">http://www.spiderland.org/breve/</a>
Included in the file is a graphic tile.sgi,which has to be put in the home directory for it to be displayed properly (it is the texture of the floor) or you can change the path at line 600 in the simulation file.Unfortunately this is the only way to do this,I apologize for the difficulty.</strong><hr></blockquote>
<strong>I have the dev tools installed and know how to use them.</strong><hr></blockquote>
Ok, I put the source up -- there's a gzipped ProjectBuilder project in the public folder, called GamutView.tgz. Hopefully, the project file is backwards compatible. Good luck!
[quote]
- (void) drawGamut
{
glPointSize( 2.0 );
histogram->DrawColors();
glBegin( GL_LINES );
glColor3f(0, 1, 1 );
glVertex3f( -1, 1, 1 );
glColor3f( 0, 1, 0);
glVertex3f( -1, 1, -1 );
glVertex3f( -1, 1, -1 );
glColor3f( 0, 0, 0 );
glVertex3f( -1, -1, -1 );
glVertex3f( -1, -1, -1 );
glColor3f( 0, 0, 1 );
glVertex3f( -1, -1, 1 );
glVertex3f( -1, -1, 1 );
glColor3f( 0, 1, 1 );
glVertex3f( -1, 1, 1 );
glColor3f( 1, 1, 1 );
glVertex3f( 1, 1, 1 );
glColor3f( 1, 1, 0 );
glVertex3f( 1, 1, -1 );
glVertex3f( 1, 1, -1 );
glColor3f( 1, 0, 0 );
glVertex3f( 1, -1, -1 );
glVertex3f( 1, -1, -1 );
glColor3f( 1, 0, 1 );
glVertex3f( 1, -1, 1 );
glVertex3f( 1, -1, 1 );
glColor3f( 1, 1, 1 );
glVertex3f( 1, 1, 1 );
glVertex3f( 1, 1, 1 );
glColor3f( 0, 1, 1 );
glVertex3f( -1, 1, 1 );
glColor3f( 1, 1, 0 );
glVertex3f( 1, 1, -1 );
glColor3f( 0, 1, 0 );
glVertex3f( -1, 1, -1 );
glColor3f( 1, 0, 0);
glVertex3f( 1, -1, -1 );
glColor3f( 0, 0, 0 );
glVertex3f( -1, -1, -1 );
glColor3f( 1, 0, 1 );
glVertex3f( 1, -1, 1 );
glColor3f( 0, 0, 1 );
glVertex3f( -1, -1, 1 );
glColor3f( 0, 0, 0);
glVertex3f( -1, -1, -1 );
glColor3f( 1, 1, 1 );
glVertex3f( 1, 1, 1 );
glEnd();
}
<hr></blockquote>
[ 12-03-2002: Message edited by: Rick1138 ]
[ 12-03-2002: Message edited by: Rick1138 ]</p>