for( int i = 0; i < detector.getNumberOfFeatures(); i++ ) { Point2D_F64 pt = detector.getLocation(i); if( detector.hasScale() ) { double scale = detector.getScale(i); int radius = (int)(scale* render.addCircle((int)pt.x,(int)pt.y,radius); } else { render.addPoint((int) pt.x, (int) pt.y); } //******to write location of point to file*********// try { File statText = new File("D:/Master/statsTest.txt"); FileOutputStream is = new FileOutputStream(statText); OutputStreamWriter osw = new OutputStreamWriter(is); Writer w = new BufferedWriter(osw); w.write((int) pt.x); w.write((int) pt.y); w.close(); } catch (IOException e) { System.err.println("Problem writing to the file statsTest.txt"); } }
w.write((pt.x.tostring());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)