When the following letters are pressed the program should do the following. I have attached a zip file that has the image and the partial code, so you don't have to start from scratch. ‘l’: perform an...

1 answer below »
When the following letters are pressed the program should do the following. I have attached a zip file that has the image and the partial code, so you don't have to start from scratch.
‘l’: perform an error diffusion threshold to black and white• ‘0’ through ‘8’: Perform an erosion based on zero to eight neighbours, respectively.• ‘)’ through ‘*’ (shift ‘0’ through shift ‘8’): Perform a dilation based on zero to eight neighbours, respectively.
Answered Same DayFeb 13, 2021

Answer To: When the following letters are pressed the program should do the following. I have attached a zip...

Ankit answered on Feb 14 2021
126 Votes
2_pressed.PNG
Capital_I_pressed.PNG
g_pressed.PNG
i_pressed.PNG
Library.PNG
run_vmoptions.PNG
t_pressed.PNG
ImageProcessing/build/classes/.netbeans_automatic_build
ImageProcessing/build/classes/.netbeans_update_resources
ImageProcessing/build/classes/Convolution$1.class
final synchronized class Convolution$1 extends java.awt.event.WindowAdapter {
void Convolution$1();
public void windowClosing(java.awt.event.WindowEvent);
}
ImageProcessing/build/classes/imageprocessing/Convolution$1.class
package imageprocessing;
final synchronized class Convolution$1 extends java.awt.event.WindowAdapter {
void Convolution$1();
public void windowClosing(java.awt.event.WindowEvent);
}
ImageProcessing/build/classes/imageprocessing/Convolution$C3.class
package imageprocessing;
synchronized class Convolution$C3 {
int r;
int g;
int b;
public void Convolution$C3(int);
public void Convolution$C3(int, int, int);
public Convolution$C3 add(Convolution$C3);
public Convolution$C3 sub(Convolution$C3);
public Convolution$C3 mul(double);
public int diff(Convolution$C3);
public int toRGB();
public java.awt.Color toColor();
public int clamp(int);
}
ImageProcessing/build/classes/imageprocessing/Convolution.class
package imagep
rocessing;
public synchronized class Convolution extends javax.swing.JComponent implements java.awt.event.KeyListener {
public java.awt.image.BufferedImage imageKings;
public java.awt.image.BufferedImage imageChristmas;
public java.awt.image.BufferedImage imageOutside;
public java.awt.image.BufferedImage image;
private org.opencv.core.Mat matImgSrc;
private org.opencv.core.Mat matImgDst;
private javax.swing.JLabel imgLabel;
public static void main(String[]);
public void Convolution();
public void grayScale();
public void sepia();
public void threshhold();
public void invert();
public void erosion(int);
public void dilation(int);
private void error_diffusion_threshold(java.awt.image.BufferedImage);
private static Convolution$C3 findClosestPaletteColor(Convolution$C3, Convolution$C3[]);
public void keyPressed(java.awt.event.KeyEvent);
public void keyReleased(java.awt.event.KeyEvent);
public void keyTyped(java.awt.event.KeyEvent);
public java.awt.Dimension getPreferredSize();
public void paint(java.awt.Graphics);
public void copyImage(java.awt.image.BufferedImage, java.awt.image.BufferedImage);
public static int getAlpha(int);
public static int getRed(int);
public static int getGreen(int);
public static int getBlue(int);
public static int makeColour(int, int, int);
}
ImageProcessing/build/classes/imageprocessing/images/2011-01-26_13_31_24.jpg
ImageProcessing/build/classes/imageprocessing/images/2011-01-26_14_18_03.jpg
ImageProcessing/build/classes/imageprocessing/images/IMG_2145.JPG
ImageProcessing/build.xml

Builds, tests, and runs the project ImageProcessing.


ImageProcessing/manifest.mf
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build
ImageProcessing/nbproject/build-impl.xml















































































































































































































Must set src.dir
Must set test.src.dir
Must set build.dir
Must set dist.dir
Must set build.classes.dir
Must set dist.javadoc.dir
Must set build.test.classes.dir
Must set build.test.results.dir
Must set build.classes.excludes
Must set dist.jar




































































































Must set javac.includes
































































































































No tests executed.





























































































































































...
SOLUTION.PDF

Answer To This Question Is Available To Download

Submit New Assignment

Copy and Paste Your Assignment Here