Hi,
I just want to retrieve the mean intensity of a unique picture using javascript. I can retrieve "interior" and "area" for example but not values related to intensity. Here is the code:
importClass(Packages.icy.roi.ROI2DRectangle)
importClass(Packages.icy.roi.ROIDescriptor)
seq=getSequence()
roi=new ROI2DRectangle(seq.getBounds2D())
meanIntensity=ROIDescriptor.computeDescriptor("Mean intensity", roi, seq)
println("Mean=" + meanIntensity)
I got this as a result:
Wrapped java.lang.UnsupportedOperationException: ROIMeanIntensityDescriptor: cannot compute descriptors for 'Rectangle2D' (script#9)
I tried by setting up ROI channel to 0 instead of all, and it doesn't work. Any idea?
Thank you for your help.
Best.
Stéphane