1
votes

I am trying to detect cell boundaries(tracking line) but error showing while clicking on progressive line on imageJ can someone please translate the error to me ?I have attached the error here

refer: printscreen is attached here

1

1 Answers

0
votes

It is an IllegalArgumentException, "out of range 2". It means that when you call ImageStack.getProcessor(3), there are not 3 images/slices into your stack.

Exactly the line that generates your error is:

if (stack[n-1] instanceof byte[])

Use getSize in order to find the number of slices/images present into your stack.