Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java 2D image filtering  RSS feed

 
Tirthankar Mukherjee
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a newbie in Image processing stuff. I need to find that if a image contains red color or not. How should I approach ?
 
Rob Spoor
Sheriff
Posts: 21044
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BufferedImage has a getRGB method to query to colour of a specific pixel.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting problem: How do you define "red"? Is it just pixels with RGB values of (255,0,0)? Or maybe (254,0,0) is also red? How about (249,5,7)?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!