g.drawImage(model, logo_width, logo_height, model_width, model_height, null);
int x = 0;
for (SurfMatch m : ms) {
SURFInterestPointN fromPoint = m.getSp1();
SURFInterestPointN toPoint = m.getSp2();
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 + "2." + ms.size()
+ ".jpg");
ImageIO.write(outputImage, "JPEG", fos);