documents:201021ijmacrofragments
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documents:201021ijmacrofragments [2020/11/26 07:01] – kota | documents:201021ijmacrofragments [2021/12/07 09:09] (current) – kota | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
====== ImageJ Macro Fragments ====== | ====== ImageJ Macro Fragments ====== | ||
Line 9: | Line 10: | ||
print(th); | print(th); | ||
</ | </ | ||
+ | |||
+ | ===== Loading ROIs from a file in Internet ===== | ||
+ | |||
+ | shell command " | ||
+ | |||
+ | <sxh js> | ||
+ | run(" | ||
+ | path = getDirectory(' | ||
+ | print(path) | ||
+ | exec(" | ||
+ | roiManager(" | ||
+ | roiManager(" | ||
+ | File.delete(path); | ||
+ | </ | ||
+ | |||
+ | ===== Getting Pixel Coordinates within a Polygon ROI ===== | ||
+ | |||
+ | <sxh js> | ||
+ | Roi.getContainedPoints(xps, | ||
+ | for(i=0; i< | ||
+ | xpos = xps[i]; | ||
+ | ypos = yps[i]; | ||
+ | pixval = getPixel(xpos, | ||
+ | print(" | ||
+ | } | ||
+ | </ | ||
+ | |||
===== Ways of getting the file basename ===== | ===== Ways of getting the file basename ===== |
documents/201021ijmacrofragments.1606374079.txt.gz · Last modified: 2020/11/26 07:01 by kota