Error message for macro

imagej

#1

Hi there,

I’m super new to imagej ( i literally know nothing) and i am trying to process an image through a macro (here is the original thread which explains the macro - http://imagej.1557.x6.nabble.com/Measurement-of-concentric-circles-td5003435.html) , which has worked many times for other people, yet comes up with an error for me which says:

"Non-RGB image expected in line 3:
Set AutoThreshold (“Triangle dark” <)>;

Could anyone help, this is for my University honours so any advice would be GREATLY appreciated.

Thankyou heaps!!


#2

The macro expects (threshold at line 3) a greyscale image (8-bit, 16-bit, 32 bit). If you convert the image to a grayscale then the macro should work (Menu: Image->Type):

https://imagej.nih.gov/ij/docs/guide/146-7.html#toc-Section-7

So just add, e.g., this line at the beginning to convert the image,e.g., to 8-bit grayscale before:

run("8-bit");

Or apply a color threshold to create a binary.


#3

It worked. Thankyou so much! i would have never of known.

Appreciate it.