Posted by
Olivier Burri on
Mar 03, 2015; 2:27pm
URL: http://imagej.273.s1.nabble.com/How-to-add-more-than-38-counter-types-in-Cell-Counter-plugin-tp5011798p5011841.html
Thank you Curtis for the GitHub migration! It's always great to know that we can now work on the code more easily when needed!
Regarding this particular question would it not be easier to use the Multipoint tool along with the ROI manager?
You can add as many multipoint ROIs as you want, rename them and so on.
I made (really quickly) an actionBar that allows you to create as many point selections as you want, and lets you count the categories in the end.
The categories can have whatever name you want.
To make it work
1. Install Actiobar, a great tool by Jerome Mutterer. This allows us to make simple buttons for macros.
http://imagejdocu.tudor.lu/doku.php?id=plugin:utilities:action_bar:start#downloads2. Download the code from dropbox here
https://www.dropbox.com/s/9p7elt8t6nn0hn8/Multi_Count.ijm?dl=03.Copy the ijm file into plugins/ActionBar folder
Restard ImageJ/Fiji
You will then find the macro under
Plugins->ActionBar->Multi Count
To use it
1. Open your image
2. Click on New category
You will be prompted to create at least 1 point before clicking OK
You will be asked for the name or it will be given a default
3. To add more points,
Select the category in the ROI manager,
Click to add as many points as you want, and finally click on
Update Category
4. If AFTER you Updated there is a point you would like to remove, you can click on
Delete Last Point
5. To Measure the counts in each category, hit
Measure and you will have a table with each column that has the name you gave it
You can rename categories anytime after the first step, their names are only used for the columns in when you are launching Measure.
6. To save the ROI set just hit
Save Rois
You can drag and drop the zip file into ImageJ to reopen the ROIs whenever you need to see them
Right now we cannot pre-import a list of names but this is feasible if you think it could be interesting.
Best
Oli
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html