How do I explicitly fetch data after a count (for printing to the output window
I'm counting bright objects on an image and I'd like to print the number of objects counted and the area of each. I've set the appropriate measures and the data table has my answers. I just need the key properties to use.
0
Best Answer
-
jcov,
You can collect the Count of bright objects to Data Collector, check "Measurement stats" table, you can just add Area(Count) measure to it.
If you do need, for some reason, to use output window, you can check macro samples on the forum that show how to get measurement data:
http://forums.mediacy.com/discussion/comment/1265#Comment_1265
http://forums.mediacy.com/discussion/comment/1666#Comment_1666
or
http://forums.mediacy.com/discussion/comment/93#Comment_93
Yuri
0
Answers
I am not finding a section of code that does exactly what you want to do.
The code in the attached TXT FILE will guide you close to where you want to go I think.
This code is working with BOUNDING BOX HEIGHT and BOUNDING BOX WIDTH and it sends the information to a DATA FILE.
I believe that you should be able to use it as a guide to work with AREA and the OUTPUT WINDOW.
I hope this is helpful.
-- Matt