• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAI/JVT or basic computer vision

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic