Graphics2D g = outputImage.createGraphics();
g.drawImage(logo, 0, 0, lw, lh, null);
g.drawImage(model, lw, lh, mw, mh, null);
g.setColor(Color.GREEN);
for (Match m : ms) {
KDFeaturePoint fromPoint = m.fp1;
KDFeaturePoint toPoint = m.fp2;
g.drawLine((int) fromPoint.x, (int) fromPoint.y, (int) toPoint.x
+ lw, (int) toPoint.y + lh);
}
g.dispose();
FileOutputStream fos = new FileOutputStream(file);