I am using ImageJ through Matlab to evaluate 8 bit black and white images. I have used Matlab for years but I am new to image J. For the most part it.IJ.run… has worked. I can’t make getHistogram work. We have found that with the images we use there is a significant count drop off and it helps inform the the vales used in threshold. It would be very helpful to make the setting dynamic based on the histogram of each image.
I think the issue is just getting the correct syntax for Matlab. The examples for Fiji macros is
getHistogram(values, counts, 256)
So I expect the be something like
[values, counts]= ij.IJ.getHistogram
This is not working any suggestions are appreciated