Post your project for free and start receiving proposals from freelancers within minutes after publication!
Complete the task on Java for the University for today
Your task is to write classes for unprocessed uncompressed images.Your program will use objects and classes, including heritage.In the next 6 lessons I will take you through the gradual development of this program in class.Reading Chapter 7 and the main points of Chapter 10 is also important for this project.The best way to continue is to try to take every step we are talking about in the classroom, to the next lesson.Create a GS class first
Step 1: As an example of what you’re going to do in your program, see how the Student class is developing.Step 2: Develop the GS class by following the Student class example.Consider what the relevant member data and methods should be, considering that we want to be able to do these things with or with the GS object:
Building a Class Object
Notify the object of its size
inform the object the name of the file from which it was created.
Read an image from the related file
Record the image into a file with the name
Lighting or shining the image.
Increase the contrast of the image
Mix the image using the template smoothing or error smoothing method that you have written in the program 1, depending on which one you choose.(You only need to include 1.)When you start developing this class, you can immediately write the access and mutator methods, as well as the reading and recording methods.(Accessories and mutators are sometimes called “ghetters” and “setters”.The IntelliJ API is very useful in I will show you how to do it.)For more complicated methods, leave the hole for now.Step 3: In your main method, announce a copy of the GS class.Just for the experiment to make sure everything works, read the data from the image file (e.g. Ian.raw) and save exactly the same data with another file name (e.g. IanCloned.raw).Two images must be the same.Step 4: Add your discharge method to the program.Place the challenge of the diserry in your main method to make sure it works.Step 5: Write the code for lighting/darking and increasing contrast.Create a RGB class.
This will be demonstrated in the classroom through classes of students/graduates/graduates.Create a Super Class for GS and RGB Classes
To do this, you need to make changes to the GS and RGB classes.This will be demonstrated in the lesson.Write your basic method for testing classes.
The main method should be as follows:
Cycling as long as the user wants to continue
Ask the user for the name of the image you need to read, whether it is the shades of gray or RGB, its width and height.Call the readImage method, which takes as arguments the image name and the number of channels (1 for the image in gray gradations and 3 for the image in RGB format).By cycling as long as the user wants to continue, offer the following options:
Calculate the size in pixels (save and print the answer)
Calculate the size in bytes (save and print the answer)
Illuminate or shut down the image and record a new image on the disk.(Name it OriginalNameLight.raw, where the OriginalName is replaced by the name of the lighted image.)The LightenOrDarken method should have an argument indicating which of the two things it should do.Increase the contrast of the image and record the new image on the disk.(Name it OriginalNameContrast.raw, where the OriginalName is replaced by the name of the image processed.)for images in gray gradations - mix the image and record the new image on the disk.(Name it OriginalNameDithered.raw, where the OriginalName is replaced by the name of the mixed image.)Complete the cycle to perform different processes on one image
Finish a cycle determining which image to be processed.I posted the task in English + code of my previous lab (may help) on GitHub.HTTPS://github.com/Boomie22/javatask
Step 1: As an example of what you’re going to do in your program, see how the Student class is developing.Step 2: Develop the GS class by following the Student class example.Consider what the relevant member data and methods should be, considering that we want to be able to do these things with or with the GS object:
Building a Class Object
Notify the object of its size
inform the object the name of the file from which it was created.
Read an image from the related file
Record the image into a file with the name
Lighting or shining the image.
Increase the contrast of the image
Mix the image using the template smoothing or error smoothing method that you have written in the program 1, depending on which one you choose.(You only need to include 1.)When you start developing this class, you can immediately write the access and mutator methods, as well as the reading and recording methods.(Accessories and mutators are sometimes called “ghetters” and “setters”.The IntelliJ API is very useful in I will show you how to do it.)For more complicated methods, leave the hole for now.Step 3: In your main method, announce a copy of the GS class.Just for the experiment to make sure everything works, read the data from the image file (e.g. Ian.raw) and save exactly the same data with another file name (e.g. IanCloned.raw).Two images must be the same.Step 4: Add your discharge method to the program.Place the challenge of the diserry in your main method to make sure it works.Step 5: Write the code for lighting/darking and increasing contrast.Create a RGB class.
This will be demonstrated in the classroom through classes of students/graduates/graduates.Create a Super Class for GS and RGB Classes
To do this, you need to make changes to the GS and RGB classes.This will be demonstrated in the lesson.Write your basic method for testing classes.
The main method should be as follows:
Cycling as long as the user wants to continue
Ask the user for the name of the image you need to read, whether it is the shades of gray or RGB, its width and height.Call the readImage method, which takes as arguments the image name and the number of channels (1 for the image in gray gradations and 3 for the image in RGB format).By cycling as long as the user wants to continue, offer the following options:
Calculate the size in pixels (save and print the answer)
Calculate the size in bytes (save and print the answer)
Illuminate or shut down the image and record a new image on the disk.(Name it OriginalNameLight.raw, where the OriginalName is replaced by the name of the lighted image.)The LightenOrDarken method should have an argument indicating which of the two things it should do.Increase the contrast of the image and record the new image on the disk.(Name it OriginalNameContrast.raw, where the OriginalName is replaced by the name of the image processed.)for images in gray gradations - mix the image and record the new image on the disk.(Name it OriginalNameDithered.raw, where the OriginalName is replaced by the name of the mixed image.)Complete the cycle to perform different processes on one image
Finish a cycle determining which image to be processed.I posted the task in English + code of my previous lab (may help) on GitHub.HTTPS://github.com/Boomie22/javatask
-
563 26 0 Hello, now I am a Junior Java Developer
Before this he was an Olympic player in sports programming, 1000+ related tasks.
I also have a few own pet-projects written.
I will do everything as quickly as possible.
The price will be discussed)
1 proposal concealed
-
Що за жах я тільки що прочитав?)
-