Re: SIFT features and stats

Posted by Rainer M. Engel on
URL: http://imagej.273.s1.nabble.com/SIFT-features-and-stats-tp5005446p5005450.html

Am 04.11.2013 21:25, schrieb Koen Hufkens:
> Sadly, although I can read the
> features in to bUnwarpJ I cannot access the statistics as produced by the
> SIFT procedure as there is no text output.

Well you could write one yourself with a script language, or the built
in macro language since SIFT creates a multi point selection you could
read the position of these points.

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//run SIFT between two images (also poss. from stack)

type = selectionType();
if (type==10) {
        getSelectionCoordinates(xArr, yArr);
        print("SIFT found: "+xArr.length+" corresponding points");
        print("printing coordinates:");
        for (i=0; i<xArr.length; i++) {
                showProgress(i+1, xArr.length);
                print(xArr[i]+","+yArr[i]);
        }
} else {
        print("No correspondencies could be found.");
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Best regards,
Rainer


--
Rainer M. Engel, Dipl. Digital Artist
scientific|Media GbR
Pichelsdorfer Str. 143
13595 Berlin

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html