@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);
}