Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

How to recognize colors?

General discussion about anything TouchDesigner

How to recognize colors?

Postby Sheff » Thu Aug 26, 2010 4:49 pm

How to crecognize and track particular colors in Touch?
User avatar
Sheff
 
Posts: 157
Joined: Wed May 26, 2010 6:45 pm

Re: How to recognize colors?

Postby Jesse » Fri Aug 27, 2010 6:15 am

Couldn't you set the colour you want to track in a table, then use a crop and a Top to Chop, then a Chop to Dat to feed a new table... then do a value comparison?

Something like in this inelegant example :D ... though I'm sure there's a better way.

(constant1 should change to 1 when the tx of the transform is at 0, and change to 0 otherwise...)
Attachments
track.toe
(4.6 KiB) Downloaded 144 times
------
piggybacking off of Achim's skillz since 2010...
User avatar
Jesse
 
Posts: 170
Joined: Wed Feb 03, 2010 2:29 pm

Re: How to recognize colors?

Postby Sheff » Fri Aug 27, 2010 11:27 am

Let me explain: I want to track people in color clothes who will be seen in the camera. Define color of the clothes and project spot with this color on them.
User avatar
Sheff
 
Posts: 157
Joined: Wed May 26, 2010 6:45 pm

Re: How to recognize colors?

Postby Jesse » Fri Aug 27, 2010 12:04 pm

Right. But you could still use the same process (albeit modified).

Have your VideoIn TOP, then a TOPtoCHOP, then a CHOPtoDAT. Use a Select DAT and only grab the '0' Row. Use Columns 0,1,2 to arm the RGB values of a Constant CHOP...

You may want to also do a blob tracking chain and identify the 'body', and then get the size and position of the blob, determine where that sits in relation to the size of your camera (resolution), then use that to dynamically set a Crop TOP, and append your TOPtoCHOP to that, so you can hone in on a particular colour...

Again, I'm sure the Derivative staff or other Users on this forum have a better idea, but this is my first though about how to approach it...

Jesse
------
piggybacking off of Achim's skillz since 2010...
User avatar
Jesse
 
Posts: 170
Joined: Wed Feb 03, 2010 2:29 pm

Re: How to recognize colors?

Postby greg » Fri Aug 27, 2010 3:58 pm

Re finding certain colors, you are likely looking for certain hue ranges, not certain RGB values. So use a Chroma Key TOP to isolate based in hue, saturation and value ranges, then get the alpha channel into RGB with a Reorder TOP, and then track that.... Blob TOP, custom, whatever.
User avatar
greg
Staff
 
Posts: 549
Joined: Tue Nov 13, 2007 1:08 am

Re: How to recognize colors?

Postby rodberry » Fri Aug 27, 2010 5:37 pm

This is a related question.
when using a chroma key TOP, it would be great to be able to sample a group of pixels from somewhere and feed those values to the various fields in the chromakey TOP. Any thoughts on how to do this? It would be double cool to have something like the 'eye-dropper' thingy in photoshop to get colors. I'm assuming this could be made as a component.

Rod.
User avatar
rodberry
 
Posts: 1068
Joined: Wed Nov 14, 2007 2:51 pm
Location: Hobart, Tasmania, Australia

Re: How to recognize colors?

Postby Sheff » Sat Aug 28, 2010 4:34 pm

Hey rodberry! You are right, i need something like eye-dropper! To find what color of the slothes is in the camera at the moment, key it and track!

Oter ideas are cool too guys! This is what i need to do...

I'm from the world of CG, trying to realize some of my ideas ;)
User avatar
Sheff
 
Posts: 157
Joined: Wed May 26, 2010 6:45 pm

Re: How to recognize colors?

Postby ben » Mon Aug 30, 2010 5:53 pm

There a an eye-dropper type tool in the Tools section of the palette called ColorMeter.

You can pick apart the insides to see how its done.
User avatar
ben
Staff
 
Posts: 2557
Joined: Thu Nov 08, 2007 6:55 pm
Location: Toronto

Re: How to recognize colors?

Postby spacessound » Wed Jul 10, 2019 5:27 am

ColorMeter doesn't seem to be in the Tolls palette any more. WHat is the current simplest way to pick colours?
spacessound
 
Posts: 10
Joined: Mon Aug 22, 2016 9:39 pm


Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: No registered users and 29 guests