About Imagestats

Hello,

I am analyzing images using igor.
I am trying this command,

imagestats/G={pcsr(A), pcsr(B), xcsr(A), xcsr(B)} imagename,

but V_flag gives me back -1.
It happens when one of the cursors is on the right end of the image area.
I can't understand why it happens although the cursors are within the image area.

Thanks a lot in advance.
That is probably because you are using the inappropriate functions to read out the cursor data. The /G flag needs row (p) and column (q) information of the ROI rectangle. But you are feeding the function x values (xcsr()) for the column parameters. Maybe you meant to use qcsr() instead?