Posted by
Cammer, Michael on
Nov 30, 2016; 2:39am
URL: http://imagej.273.s1.nabble.com/question-on-stack-histogram-macro-tp5017654p5017656.html
Look at the getHistogram command at
https://imagej.nih.gov/ij/developer/macro/functions.html#G .
Instead of run("Histogram", "stack"); use the getHistogram command.
_________________________________________
Michael Cammer, Optical Microscopy Specialist
http://ocs.med.nyu.edu/microscopyhttp://microscopynotes.com/Cell: (914) 309-3270
________________________________________
From: ImageJ Interest Group [
[hidden email]] on behalf of Lai Ding [
[hidden email]]
Sent: Tuesday, November 29, 2016 9:32 PM
To:
[hidden email]
Subject: question on stack histogram macro
Hello There,
I have a simple question on acquiring stack histogram.
If I have a stack image named "raw", I can use "Analyze" --> "Histogram" to get the stack histogram. the ImageJ will show the histogram in a new window named "Histogram of raw". once I click the "List" button in the new window, it will show all the bins and counts in a table, then I can save teh table as a xls file.
My question is how to achieve this in macro language. once I run
selectImage("raw");
run("Histogram", "stack");
how do I open the stack histogram table ( as manully click the "List" button)?
Thanks
Lai
--
ImageJ mailing list:
https://urldefense.proofpoint.com/v2/url?u=http-3A__imagej.nih.gov_ij_list.html&d=DgIFaQ&c=j5oPpO0eBH1iio48DtsedbOBGmuw5jHLjgvtN2r4ehE&r=oU_05LztNstAydlbm5L5GDu_vAdjXk3frDLx_CqKkuo&m=AHN5osRHyOzQygzzFuvZwdLQvPqIKmsjnoUGd8iVVsk&s=ZsBAYErVU7YKf7UKzTQ5M19kKJzb2hUcUyO18IYVaMw&e=------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html