1) would it be possible to amend the multipoint tool to record the Z slice position - the tool is useful for manual counting as it provides a record of where counts were made, but when counting in a stack the Z location would be useful - allowing the location to be used in an automated measurement at or around the selected point.
2) could the Point Tool Options menu allow for 'none' Selection Color. It seems like an odd request but a none Selection color plus a large Marker size with the Cross color set - would highlight the pixels in the image where the point was marked- you would see 4 segments of a cross with and an unmarked centre - could see what was chosen. 3) The template IJ macro 'Scale all ROIs' Includes function scaleROI(factor) { type = selectionType(); getSelectionCoordinates(x, y); for (i = 0; i < x.length; i++) { print(i,x.length); x[i] = x[i] * factor; y[i] = y[i] * factor; } makeSelection(type, x, y); } I wondered where x.length comes from ? It appears to be returned by getSelectionCoordinates(x, y) but this is not mentioned in the 'Built in Macro Functions' listing. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
On Aug 29, 2014, at 6:12 AM, Jeremy Adler wrote:
> 1) would it be possible to amend the multipoint tool to record the Z slice position - the tool is useful for manual counting as it provides a record of where counts were made, but when counting in a stack the Z location would be useful - allowing the location to be used in an automated measurement at or around the selected point. Upgrade to the latest daily build (1.49h9) and the point tool will record slice positions if you enable "Add to overlay" in the Edit>Options>Point Tool dialog. The "Add to ROI Manager" option in the same dialog also records slice positions. Note that these options only work with the single point tool. > 2) could the Point Tool Options menu allow for 'none' Selection Color. It seems like an odd request but a none Selection color plus a large Marker size with the Cross color set - would highlight the pixels in the image where the point was marked- you would see 4 segments of a cross with and an unmarked centre - could see what was chosen. A "none" option for the selection color would not work because it would simply uncover the complete crosshair. The latest daily build, however, has a "Type" drop down menu in the point tool options dialog that allows you to select a bare crosshair, a dot or a circle. > 3) The template IJ macro 'Scale all ROIs' > Includes > > function scaleROI(factor) { > type = selectionType(); > getSelectionCoordinates(x, y); > for (i = 0; i < x.length; i++) { > print(i,x.length); > x[i] = x[i] * factor; > y[i] = y[i] * factor; > } > makeSelection(type, x, y); > } > > I wondered where x.length comes from ? > It appears to be returned by getSelectionCoordinates(x, y) but this is not mentioned in the 'Built in Macro Functions' listing. The length property is a language feature, not a function. Add ".length" to any array variable to get the length of the array. Java and JavaScript also have array length properties. -wayne -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |