Question: Need help finishing Java image project. You must create interfaces called ImageReader and ImageWriter. Each interface will contain a single method, either read or write
Need help finishing Java image project.
You must create interfaces called ImageReader and ImageWriter. Each interface will contain a single method, either read or write that both take in a single String parameter that represents either a filename or a directory for where image files are stored. Read is used to read data from a file into the Image, while write is used to write data from the Image to the file.
You must create an abstract Image class that implements the ImageReader and ImageWriter interfaces. This class will have an inner Pixel class and a two-dimensional array of Pixels for storing image data. This class will provide methods for getting the dimensions of the array, setting height and width, and getting the pixels in the array (you should be able to refer to a pixel by row and column). This class will not implement the read and write methods. Instead there should be a derived class called PPM that implements these two methods.
You must create an Album class that implements the ImageReader and ImageWriter interfaces. The Album class is responsible for reading in all images in a directory (assume only image files are in the directory), storing the images in an ArrayList, applying filters to all images stored in an Album, and for writing filtered images to an output directory. Writing should not be performed directly, but by calling each Image objects write method.
You must create an interface for filters called Filter. This interface will contain a single method called apply that takes in an Image class and returns an Image class after applying a filter. Each individual filter should be a class that implements this interface.
You must provide functionality for displaying an image using Javas Swing tools and
libraries.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
