Show us yer programming projects!

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
Post Reply
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Re: Show us yer programming projects!

Post by failrate »

Every time Bob and Steve release a teaser, and angel gets his wings... and a hummer.
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Re: Show us yer programming projects!

Post by failrate »

Adapting my flashcard code into a Leitner System setup: http://failrate.com/b/leitner.xhtml
Right now, it's basically just a multiple choice quiz. I've got to wire up cookies in order to get the necessary session information required to create the Leitner System "boxes".
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Re: Show us yer programming projects!

Post by failrate »

http://failrate.com/b/leitner.xhtml <- Leitner system quiz flashcard web page with cookie storage is complete. If you want a cheap and cheerful flashcard system for whatever you're trying to learn, feel free to blag the code. If you just want to use my link to study calculus, feel free.
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Show us yer programming projects!

Post by GoatFoam »

Been playing with something new lately.

I started trying to put together a few computer vision type tools. So far they are crap at actually detecting things, but some of the output is pretty...

Image
adam
Baaaaaa!
Baaaaaa!
Posts: 4418
Joined: Sat Jun 24, 2006 9:15 pm 0

Re: Show us yer programming projects!

Post by adam »

looks like a find edges filter
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Show us yer programming projects!

Post by GoatFoam »

It's doing something slightly more interesting than that, although there is an edge detection component.

Essentially it is looking at a region around each pixel and deciding how similar it is to a region around a pixel in another image. Trying to match objects basically.

At the moment it is using histogram differences with edge orientation and chromaticity histograms.

At the moment I'm using a 25 bin orientation histogram laid out in a 5x5 grid for small and large gradients, and a 64 bin chroma histogram although I'm probably going to change that.

It's all based on an integral histogram representation that lets me do an O(n) preprocess (in number of pixels), and then get histograms for any rectangular sub region in O(1) time. It takes exactly as long to search 100x100 windows as it does 2x2 ones.

Unfortunately it does cruel and unusual things to machines with insufficient memory.

Here is an attempt to make it find my socks:

Image
User avatar
_TinOmen_
Baaaa!
Baaaa!
Posts: 745
Joined: Wed Feb 12, 2003 10:52 pm 0
Location: Stockholm, Sweden
Contact:

Re: Show us yer programming projects!

Post by _TinOmen_ »

I like those images. Computer vision is really interesting and it's one area that's really benefited from increased cpu and gpu power of desktop computers. Just 10-15 years ago all you could do in realtime was simple edge-detection on low res b/w images. I guess that's one of the reasons those robocup-players were so crap at finding the ball even under perfect viewing circumstances.

I'd love to see a technical paper with a diagram comparing how different methods succeed in finding your socks :)
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Show us yer programming projects!

Post by GoatFoam »

Phase 2 will be car keys.
User avatar
super charlie
Baaaaa!
Baaaaa!
Posts: 1809
Joined: Wed Mar 31, 2004 7:53 pm 0
Location: Ipswich, suffolk
Contact:

Re: Show us yer programming projects!

Post by super charlie »

Couple of new vids. Visually it's getting very close to being there now. I'll probably change the text dotted around the screen to something nicer.

Vertical scrolling level with Space Invaders homage in the middle:



My current favorite level in the game:



Cheers
Charlie
Visit my website here to have a look at my game.
User avatar
piku
Sheepie Whore
Sheepie Whore
Posts: 20960
Joined: Wed Apr 24, 2002 10:44 am 0
Website: Http://Www.ncot.uk
Location: Wakefield
Contact:

Re: Show us yer programming projects!

Post by piku »

GoatFoam wrote:Phase 2 will be car keys.
Make it find my watch and I'll buy ten...
return (0);
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Show us yer programming projects!

Post by GoatFoam »

I stuck it into the STM repository along with my hdri stuff. If anyone wants a play get mercurial

hg clone http://www.spectral3d.co.uk/repo/stm/

you need to build the whole lot, as it uses lots of my old modules, but the histogram stuff is tucked away in executables/feature which isn't built by default.

Should build under linux and with mingw.Reply to topic

For how it actually works look at lib/image.h and lib/image.cpp and look for IntegralHistogram
User avatar
Devlin
Baaaaa!
Baaaaa!
Posts: 1380
Joined: Tue Aug 02, 2005 10:53 pm 0
XBL Gamertag: Anarkhis
Location: Bradford, Sacred Sod of God's Own County
Contact:

Re: Show us yer programming projects!

Post by Devlin »

Err, poot. I appear to have broken my resolution to not code for an entire year.

This is what happens when internet is taken away from me except for ~2 hours a day.

I invested in Game Maker 8 and got to work with it. Not bad, lots of vast improvements from GM7(thank god) plus a few *much needed* updates :D

Coming soon - a game involving pirates in my "new" style :D
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Show us yer programming projects!

Post by GoatFoam »

I have been mucking around with the gimp plugin interface.

I adapted that computer vision code I was playing with to implement a simplified bilateral filter, AKA surface blur.

It takes a huge amount of memory, but suffers virtually no performance drop as you increase the filter size.

before:
Image

after:
Image

and a bit more:
Image


processing time: a few seconds.
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Show us yer programming projects!

Post by GoatFoam »

Anyone want to try my new gimp surface blur plugin?
Get it here:

http://www.spectral3d.co.uk/misc/bilateral.tar.gz

it's a
./configure
make
sudo make install

type of thing, and you need to have the gimp headers installed.
It should appear in the filters menu under blur/simple bilateral
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Show us yer programming projects!

Post by gravy »

Here's a pretty bad game for the Mac :D

It's very easy. You need to dodge the ducks, you get more points the longer you survive.

You get more (and significant) points if you get close to a duck. If you do that they start to expand and eventually explode.

Very early alpha so there are a load of caveats:

* Need balancing and some sort of wave structure.
* Needs to force full screen
* You can move your duck hugely off screen
* Intel only

V slow on intel integrated shitty gfx

But if you have a newish mac it should run okay :D

http://www.gazaxian.com/msd_yy2.zip

Nice musics and sfx by swith :)

My top score so far is 11k :D
Post Reply