Question: The algorithm are shown . Plz write the complete code ------- --------- Project 1.1: Problem statement: The histogram of an image is the statistic counting
Project 1.1: Problem statement: The histogram of an image is the statistic counting of pixel values in the input image, where hist[i] tells how many pixels having valuei in the input image. Given an image, the task is to compute the histogram of the image. You should be able to write this in a few hours Language Java Due date: Java Soft copy: 2/07/2018 Wednesday before Midnight Due date: Java Hard copy: 2/08/2018 Thursday in class I Input (argv[0]) a txt file representing a grey-scale image, where the first text line (4 integers) is the "header" of the input image then follows by rows and cols of integers. For example, 4 6 1 12 // image has 4 rows, 6 cols, min is 1, max is 12 2 3 411 2 9 5 6 11 2 10 7 1 1 12 1 9 9 4 5 6 9 9 9 II. Output (argv[1]) the histogram of the input image, use the format below: first text line is the image header (the four numbers as in the input image), then follows by a 1ist of pairs: greyScale numPixels // two numbers ner text line: for examnle, the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
