Posted by
Jan Eglinger on
URL: http://imagej.273.s1.nabble.com/2D-histogram-of-two-channels-tp5022216p5022219.html
Dear Rainer,
in Fiji, you can get the result image of the Coloc_2 plugin directly via
scripting languages, e.g. using the following Groovy script:
```
#@ Img input1
#@ Img input2
import sc.fiji.coloc.gadgets.DataContainer
import sc.fiji.coloc.algorithms.Histogram2D
container = new DataContainer(input1, input2, 0, 0, "First", "Second")
hist2d = new Histogram2D("My custom 2D histogram")
hist2d.execute(container)
result = hist2d.getPlotImage()
```
The result image is 32-bit, so you will have to adjust the display range
to see anything.
For the red and green channel of the Clown sample image, I get the
attached result image. Interestingly, there seem to be some strange
artifacts in the 2D histogram image that I can't see in the 1d histogram
plots of the same image. Dan White (the author of Coloc_2) might want to
comment on this, but I'm not sure if he still subscribed to this mailing
list, so it might be worth asking on the image.sc forum instead:
https://forum.image.sc/Best regards
Jan
On 04.06.2019 12:38, Rainer M. Engel wrote:
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html