Coloc 2 Java Problem


#1

Hi,

When I am trying to use the Coloc2 plugin I get the following error:

(Fiji Is Just) ImageJ 2.0.0-rc-61/1.51n; Java 1.8.0_66 [64-bit]; Windows 7 6.1; 60MB of 5876MB (1%)
 
java.lang.ClassCastException: net.imglib2.type.numeric.ARGBType cannot be cast to net.imglib2.type.numeric.RealType
	at net.imglib2.algorithm.math.ImageStatistics.getImageMean(ImageStatistics.java:105)
	at sc.fiji.coloc.gadgets.DataContainer.calculateStatistics(DataContainer.java:230)
	at sc.fiji.coloc.gadgets.DataContainer.<init>(DataContainer.java:127)
	at sc.fiji.coloc.Coloc_2.colocalise(Coloc_2.java:486)
	at sc.fiji.coloc.Coloc_2.colocalise(Coloc_2.java:452)
	at sc.fiji.coloc.Coloc_2.run(Coloc_2.java:176)
	at ij.IJ.runUserPlugIn(IJ.java:217)
	at ij.IJ.runPlugIn(IJ.java:181)
	at ij.Executer.runCommand(Executer.java:137)
	at ij.Executer.run(Executer.java:66)
	at java.lang.Thread.run(Thread.java:745)

Does anyone know what the problem can be?
Thank you!

Thank you so much for your help!


#2

Dear @ping,

is one of your images an RGB image, e.g. loaded from a PNG or JPEG? If so, you first have to convert the images to 8-bit greyscale images. You can try to use Image > Type > 8-bit on your images.

Best,
Stefan