Esempio n. 1
0
 // Experimental
 public static List<Result> findMatchesByGrayscaleAtOriginalResolutionWithROIs(
     BufferedImage input, BufferedImage target, int limit, double minScore, List<Rectangle> rois) {
   IplImage input1 = ImagePreprocessor.createGrayscale(input);
   IplImage target1 = ImagePreprocessor.createGrayscale(target);
   IplImage resultMatrix =
       TemplateMatchingUtilities.computeTemplateMatchResultMatrixWithMultipleROIs(
           input1, target1, rois);
   return fetchMatches(resultMatrix, target1, limit, minScore);
 }
Esempio n. 2
0
 public static List<Result> findMatchesByGrayscaleAtOriginalResolution(
     BufferedImage input, BufferedImage target, int limit, double minScore) {
   IplImage input1 = ImagePreprocessor.createGrayscale(input);
   IplImage target1 = ImagePreprocessor.createGrayscale(target);
   IplImage resultMatrix =
       TemplateMatchingUtilities.computeTemplateMatchResultMatrix(input1, target1);
   List<Result> result = fetchMatches(resultMatrix, target1, limit, minScore);
   input1.release();
   target1.release();
   resultMatrix.release();
   return result;
 }