g.drawImage(model, logo_width, logo_height, model_width, model_height, null);
int x = 0;
for (Entry<SURFInterestPoint, SURFInterestPoint> es : matchMap.entrySet()) {
SURFInterestPoint fromPoint = es.getKey();
SURFInterestPoint toPoint = es.getValue();
g.setColor(cs[x++ % 3]);
g.drawLine((int) fromPoint.getX(), (int) fromPoint.getY(), (int) toPoint.getX() + logo_width,
(int) toPoint.getY() + logo_height);
}
g.dispose();
fos = new FileOutputStream(diff_filepath + tf.getName() + "_" + logo_surf_name + matchMap.size()
+ ".jpg");
ImageIO.write(outputImage, "JPEG", fos);