### Question:
CannyEdgeDetect { public static BufferedImage detect(BufferedImage image, int min, int thresh) { BufferedImage blurred = Convolve.convolve(image, Convolve.Gausian5x5); BufferedImage grey = ConvertImage.otherGray(blurred); BufferedImage sobelH = CannyEdgeDetect.getSobelH(grey); BufferedImage sobelV = CannyEdgeDetect.getSobelV(grey); BufferedImage angle = CannyEdgeDetect.getAngles(sobelH, sobelV); BufferedImage grad = CannyEdgeDetect.getGradient(sobelH, sobelV); BufferedImage nms = CannyEdgeDetect.nonMaxSupression(angle, grad); BufferedImage output = CannyEdgeDetect.hysteresisThresholding(nms, min, thresh); return output; }  static BufferedImage detect(BufferedImage image, int min, int thresh);  }### Answer:
@Test @Ignore public void testDetect() throws Exception { URL systemResource = ClassLoader.getSystemResource("3kitties.jpg"); System.out.println(systemResource); String file = systemResource.getFile(); String resdirpath = file.substring(0, file.lastIndexOf(FileSystems.getDefault().getSeparator())); File resDir = new File(resdirpath); File[] files = resDir.listFiles(filter); for (File img : files) { new ShowImage(img.getName(), CannyEdgeDetect.detect(ImageIO.read(img), 130, 175)); } Thread.sleep(5000); }