Hello all:
I've perused the list of plug-ins on the ImageJ site but don't see something that'll do what I need... I'm looking for a plugin similar to "cell counter" that when clicked will place a number on a structure of interest, but in my case the number should sequentially increase with each click rather than placing the same "type" code with each click. My purpose here is to label one slice in a stack with sequential numbers so that cells in an image can be randomly selected within a region for tracking... I have too many cells in an image stack to track them all and need to sample them randomly - in order to do this, I need to identify them before randomization... I suppose I could print an image and label a printout of the image but if a plugin or macro would do this, I can keep the data analysis fully electronic. Thanks for any suggestions... John - - - - - John Livesey, Ph.D. / Associate Professor of Pharmacology T.J. Long School of Pharmacy & Health Sciences at University of the Pacific 3601 Pacific Avenue, Stockton, CA 95211 U.S.A. [hidden email] / 209-946-2485 |
Dear John,
I hope this small macro will do what you expected! Just copy/paste and run it. By clicking in an image with this tool activated, it will print the number to the same position using the color you slected by the Color Picker. to reset the counter double click the toolicon (#) in the toolbar. _____________________________________________________________ //defines the global variable var labelcount = 1; //adds the labelcounter tool to the toolbar (indicated by a # ) macro "LabelCount Tool - C000T3e16#" { getCursorLoc(x, y, z, flags) //draw the current number in the selected foregroundcolor //to the mouseclick-position drawString(labelcount, x, y); labelcount = labelcount+1; } //reset the count by doubleclicking the toolicon macro "LabelCount Tool Options" { labelcount = 1; } _____________________________________________________________ best wishes, Thomas _ _ _ _ _ _ _ _ _ Thomas Weber Universität Hohenheim 70599 Stuttgart, Germany >Hello all: > >I've perused the list of plug-ins on the ImageJ site but don't see >something >that'll do what I need... I'm looking for a plugin similar to "cell >counter" >that when clicked will place a number on a structure of interest, but in my >case the number should sequentially increase with each click rather than >lacing the same "type" code with each click. My purpose here is to label >one slice in a stack with sequential numbers so that cells in an image can >be randomly selected within a region for tracking... I have too many cells >in an image stack to track them all and need to sample them randomly - in >order to do this, I need to identify them before randomization... I suppose >I could print an image and label a printout of the image but if a plugin or >macro would do this, I can keep the data analysis fully electronic. > >Thanks for any suggestions... > >John >- - - - - >John Livesey, Ph.D. / Associate Professor of Pharmacology >T.J. Long School of Pharmacy & Health Sciences at University of the Pacific >3601 Pacific Avenue, Stockton, CA 95211 U.S.A. |
Free forum by Nabble | Edit this page |