Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (vicknick, dr_panther, VoroneTZ), 1,255 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
histogram viewer for RGB color space #268143
05/27/09 15:46
05/27/09 15:46
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Hi,

this is actually not a project or game related. I needed for my current research project a histogram viewer for the RGB color space in which I can render for each histogram bin a presentation through a particle.



click for larger image

These are actually ~390.000 particles. On my laptop I have ~10 fps. This is very cool, the performance comes through the particle instancing.

If you wanna try it out, download the following archive:
click here to download the BGR 3D histogram viewer (hisView)

Just start the exe and select the .txt file.

In fact, I trained on a large database of skin images to retrieve the probability distribution in RGB space for skin color. So, only these "skin-ish" colors are represented in the histogram.

Have fun,
Christian

Re: histogram viewer for RGB color space [Re: HeelX] #268148
05/27/09 16:52
05/27/09 16:52
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
"390.000"

Good to know. smile
Apart from that: Itīs really impressive what you get out of the engine.
Kudos!


no science involved
Re: histogram viewer for RGB color space [Re: fogman] #268150
05/27/09 17:04
05/27/09 17:04
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Nice one!
Good joob HeelX smile

Re: histogram viewer for RGB color space [Re: Cowabanga] #268166
05/27/09 19:07
05/27/09 19:07
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
cool stuff you got there
390k particles with 10fps on laptop....hm...nice smile



Ubi bene, ibi Patria.
Re: histogram viewer for RGB color space [Re: croman] #268245
05/28/09 10:23
05/28/09 10:23
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
hm... why does it switch colors when rotating? Is it supposed to do that?

Other than that, wow smile


~"I never let school interfere with my education"~
-Mark Twain
Re: histogram viewer for RGB color space [Re: Germanunkol] #268330
05/28/09 17:12
05/28/09 17:12
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Originally Posted By: Germanunkol
hm... why does it switch colors when rotating? Is it supposed to do that?


That has to do with alpha-sorting. When you rotate the RGB cube so that the white corner faces the camera, the darker particles are "fighting" against the brighter particles. Has anyone an idea to fix that? Maybe I use a 1-bit alpha DDS image...

Best regards (and thanks for the comments),
-- Christian

Re: histogram viewer for RGB color space [Re: HeelX] #268364
05/28/09 20:41
05/28/09 20:41
Joined: Dec 2000
Posts: 4,608
mk_1 Offline

Expert
mk_1  Offline

Expert

Joined: Dec 2000
Posts: 4,608
Face detection/tracking based on image histrogram?

Looks nice


Follow me on twitter
Re: histogram viewer for RGB color space [Re: mk_1] #268376
05/28/09 21:29
05/28/09 21:29
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Sort of. I deal with realtime facial motion capturing. The first step of my work is easy: finding a region of interest, which is actually in my case the face, obviously.

I'm currently testing RGB, HSV and LAB color spaces about which is suited best to assign each pixel a probability if it is a skin pixel (research showed HSV is the best). Then I group 'em and together with a motion and a geometry cue I hopefully get the face bounding box.

Last edited by HeelX; 05/28/09 21:30.
Re: histogram viewer for RGB color space [Re: HeelX] #268489
05/29/09 16:03
05/29/09 16:03
Joined: Mar 2004
Posts: 92
Dresden
Revo Offline
Junior Member
Revo  Offline
Junior Member

Joined: Mar 2004
Posts: 92
Dresden
OO - this is realy cool smile
(and its very interesting how much the instancing influences the fps .

sry for the offtopic question, but i am searching the last hour after it:
can you tell me which way you included this file-select-popup (i remember that i read sth about that .. but can't remember ^^)


-----3d Gamestudio Commercial---------
Vers. 7.8
Focus on Gaming
Re: histogram viewer for RGB color space [Re: Revo] #268574
05/30/09 01:52
05/30/09 01:52
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Here you go:

Code:
void openFileDialog (char* filename, char* title, char* filter)
{
     OPENFILENAME o;
     zero(o);

     strcpy(filename, "");

     // Stelle den Dialog ein
     o.lStructSize   = sizeof(OPENFILENAME);
     o.Flags         = OFN_PATHMUSTEXIST | OFN_HIDEREADONLY | OFN_NOCHANGEDIR;
     o.lpstrFilter   = filter;
     o.lpstrTitle    = title;
     o.lpstrFile     = filename;
     o.nMaxFile      = 255;

     GetOpenFileName(&o);
}

// Usage:

void example ()
{
     char file[512];
     
     openFileDialog(file, "open file", "text files (*.txt)\0*.txt\0\0");
     wait_for(openFileDialog);
     
     printf("the file %s has been selected", file);
}


Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1