• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAI/JVT or basic computer vision  RSS feed

Lucian Smith
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to the whole computer vision thing and I need some direction..

Okay, so I have a BufferedImage containing a screen shot of a Flash game (the helicopter game if you know it). I want to take this BufferedImage, and convert it into a boolean matrix. To clarify: in this game, anything green is an obstacle, and anything black is open space. So I have this image that is 1280x1024, and an empty boolean matrix of maybe 128x102 (i don't know, the resolution will be tweaked later) I need to look at perhaps 10x10 pixel block, decide if it's open space or an obstacle (if more than 20% green, default to obstacle or something) and then make this entry in the matrix TRUE for obstacle. Then i will run some quick pathfinding algorithm on this matrix.

The hard part for me is taking a BufferedImage, and in a quick/efficient way (since it's time critical) analyzing blocks of it and deciding obstacle or empty.

I've been looking at JAI/JVT but examples and docs are a bit thin, plus I don't even know where to start.. never did graphics stuff before.

Thanks everyone!!!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!