Edge Detection with ROI Broken(?)

I am working on some image quantification and having some trouble with edge detection when used with an ROI.

I use the edge detection dialog with the live display so I can test out various algorithms available. When the dialog box is open and in live mode it seems to work as expected both with and without an ROI. I then select do it and look at the W_imageEdges wave to see the result. When I do not have an ROI enables the resulting wave (image) matches that during the dialog box live display. However, if I use an ROI and the resulting wave/image does not match at all what is seem during the dialog viewing.

Is something amisss or is my exception incorrect?

Andy
Edge Detection ROI problem.pxp
Thank you A.G.

I understand it was not a trivial problem. Great work and response as always.

Andy