DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2005
    Posts
    1

    image processing

    Hey all,

    I am looking for a way to sample pixels in a binary bufferedimage(black and white) to see if it is black or white.


    any help would be greatly appreciated.

    Thanks a bunch

    Brad.

  2. #2
    Join Date
    Sep 2005
    Location
    istanbul / Turkey
    Posts
    133
    for x,y,image :

    image is BufferedImage,
    0 <= x < image.getWidth() ,
    0 <= y < image.getHeight() ,

    int rgbColor = image.getRGB(x, y);
    ----------------------------------------
    big rgbColor values are brighter.

Similar Threads

  1. Replies: 4
    Last Post: 10-23-2011, 02:47 PM
  2. help regarding image processing
    By laxmi in forum Java
    Replies: 6
    Last Post: 02-03-2006, 12:55 PM
  3. Replies: 0
    Last Post: 07-11-2005, 09:41 PM
  4. Script for scrolling
    By Mark in forum Web
    Replies: 3
    Last Post: 08-30-2001, 11:45 AM
  5. PhotoTrue: New image processing library entering public testing.
    By David Crowell in forum vb.announcements
    Replies: 0
    Last Post: 09-05-2000, 12:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links