Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How to implement about Pixel Counter

  1. #1
    Junior Member
    Join Date
    Apr 2019
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to implement about Pixel Counter

    Takes one image and four values: A, R, G, B as input. Then, it will use the 4 values as a key, search for similar color and tell whether the color exist in the image. The class will report how many times the similar color exist in the image. In this assignment, similar color means that the difference between the A, R, G, B values shouldn’t be larger than 15. For example: (255,6 ,6 , 34) is considered as similar color with (255,21 ,21 , 49), while (255,6 ,6 , 34) is NOT similar color with (255,206 ,6 , 34). And Time Taken is faster than the following result.

    result-1.png
    result-2.png
    result-3.png

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,474
    Thanks
    53
    Thanked 2,405 Times in 2,358 Posts

    Default Re: How to implement about Pixel Counter

    Do you have a java programming question?
    Be sure to wrap all posted code in code tags.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. coordinate double -> pixel int
    By Tchoumo in forum AWT / Java Swing
    Replies: 7
    Last Post: October 12th, 2013, 04:15 PM
  2. Pls help with my game pixel draw
    By metul4o in forum What's Wrong With My Code?
    Replies: 7
    Last Post: February 28th, 2013, 07:57 AM
  3. A Pixel Out Of Place
    By tyeeeee1 in forum What's Wrong With My Code?
    Replies: 6
    Last Post: December 4th, 2012, 07:06 PM
  4. Can not get individual pixel values using getRGB
    By maheshchavan in forum AWT / Java Swing
    Replies: 1
    Last Post: June 17th, 2012, 11:37 AM
  5. Get Pixel
    By Ophe in forum What's Wrong With My Code?
    Replies: 7
    Last Post: January 27th, 2011, 04:24 PM