SRL Archive - Suggestions

Color entropy and texture finding


Cigue

2010-07-03 13:49:59

Could an algorithm be made to recognize textures on the mainscreen? It could calculate stuff like the brightness/color shift from pixel to pixel, using statistics to choose what looks like a particular texture and what doesn't.

i luffs yeww

2010-07-03 15:25:22

Any examples of what you'd want to use this for?

Also, Pascal may not be fast enough for this. You could always try. :)

EvilChicken!

2010-07-03 16:49:24

I believe Wizzup made something like this into a plugin once.

Cigue

2010-07-04 00:09:37

Any idea how to use it if it's already in the program?

EvilChicken!

2010-07-04 02:44:34

I don't think they're inclded in Simba/SCAR, not as I can remember anyway. (Maybe he used them to solve some random, haven't checked up on that.) I was just suggesting you'd PM him.

And, I too am anyway wondering what you'd need such functions for?

The Claw

2010-07-04 02:55:33

Isn't colour entropy to find textures just:

FindColorsTolerance(firstcolor)
if Length(firstcolor) > x then
FindColorsTolerance(secondcolor, in a box around highest conc. of first color)
if Length(secondcolor) > x then
...

GetPixel and comparing functions could be used from there to find the differences

Cigue

2010-07-05 00:14:52

From: EvilChicken!
I don't think they're inclded in Simba/SCAR, not as I can remember anyway. (Maybe he used them to solve some random, haven't checked up on that.) I was just suggesting you'd PM him.

And, I too am anyway wondering what you'd need such functions for?


More reliable path/item finding, think of it as a possible CTS 3 :)

Also,


From: The Claw
Isn't colour entropy to find textures just:

FindColorsTolerance(firstcolor)
if Length(firstcolor) > x then
FindColorsTolerance(secondcolor, in a box around highest conc. of first color)
if Length(secondcolor) > x then
...

GetPixel and comparing functions could be used from there to find the differences


Wat?

Daniel

2010-07-05 00:24:33

From: i luffs yeww
Also, Pascal may not be fast enough for this.

What the hell?

i luffs yeww

2010-07-05 14:52:54

What I thought he was doing was way different. I thought he meant for like.. high definition water. :p

Cigue

2010-07-05 22:21:15

I've worked ideas and so far I'm not the best person for this kind of job, with my limited knowledge of any programming language outside of SRL and Pascal.