Assignment:
Imagine that you are given an abstraction for an image thatincludes a set of individual colored pixels. The pixels arepresented to you as an indexable set (like a 2D array). Every pixelhas 3 values – red, green and blue associated with it.
You will devise and implement an algorithm that can count howmany red pixels there are in an image.
You will need to download a red picture from the internet.
Use Java API found here:https://www.cs.rutgers.edu/~atjang/mediacomp/docs/index.html?SpeechBalloon.html
In Eclipse:
public class Milestone2 { public static void main (String[] args) {
OR
OR