Write a class named ImageProcessor.
ImageProcessor(String imageFile). Parameter imageFile holds the name of the image that will be manipulated. We will use W to denote the width and H to denote the height of the image.
reduceWidth(double x) Returns a new Picture whose width is âx Ã W â. Note that the type
of this method must be Picture. Your method must use the algorithm described earlier to reduce the image width. And your method must use the static method minCostVC to compute the vertical cut.
minCostVC(int M): Returns a min-cost vertical cut. Type of this method must be array list of integers. Note that if M has n rows, the the returned array list has exactly 2n integers.