Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6800335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:57:24+00:00 2026-05-26T18:57:24+00:00

The process is pretty simple — I want to take an image as input,

  • 0

The process is pretty simple — I want to take an image as input, and compare every pixel in the image against a specified color. Then return the percentage of pixels that match the color.

I’m sure this is very simple to implement, I just need some kind of guidance as to which library to use, whether there are any tutorials on image processing by pixels. I haven’t really found anything and would love any help.

Also, if this is easier in another language, I wouldn’t mind using that either. I’m just most proficient with Java

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:57:25+00:00Added an answer on May 26, 2026 at 6:57 pm

    This is doable with the standard Java BufferedImage class.

    File file= new File("tardis.jpg");
    BufferedImage image = ImageIO.read(file);
    int rgb = image.getRGB(42, 42); 
    
    int red   = (rgb & 0x00ff0000) >> 16;
    int green = (rgb & 0x0000ff00) >> 8;
    int blue  =  rgb & 0x000000ff;
    

    getHeight() and getWidth() do what you’d expect allowing full scanning. ImageIO is a convenience class for using ImageReaders (and writers).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some pretty simple Java code in which I'm starting another process and
I'm in the process of evaluating db4o and I have a pretty simple question.
Recently I converted a Swing application to Webstart. The process was pretty straightforward, but
I am getting a pretty common, The process cannot access the file because it
I'm running a pretty simple server in Python using Twisted. When I try to
I'm developing a pretty simple bot in Node.js, and it won't launch anymore. Node.js
This is probably pretty simple, but I can't find the answer in the docs.
I've pretty much tried every Python web framework that exists, and it took me
i have an import process, where i take a CSV file in .Net, and
I'm using the Simple XML library to process XML files in my Android application.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.