User Tools

Site Tools


documents:201021ijmacrofragments

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
documents:201021ijmacrofragments [2021/01/30 11:12] kotadocuments:201021ijmacrofragments [2021/12/07 09:09] (current) kota
Line 24: Line 24:
 File.delete(path); File.delete(path);
 </sxh> </sxh>
 +
 +===== Getting Pixel Coordinates within a Polygon ROI =====
 +
 +<sxh js>
 +Roi.getContainedPoints(xps, yps); 
 +for(i=0; i<xps.length; i++) {
 + xpos = xps[i];
 + ypos = yps[i];
 + pixval = getPixel(xpos, ypos);
 + print("("+ xpos + ", " + ypos + ") ", pixval);
 +}
 +</sxh>
 +
 +
 ===== Ways of getting the file basename ===== ===== Ways of getting the file basename =====
 <sxh js> <sxh js>
documents/201021ijmacrofragments.txt · Last modified: 2021/12/07 09:09 by kota

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki