ok I only tried this in the centered square mode, I have not tested other modes to see if a problem occurs or not, plz correct me if I am wrong people (However I don't think any problems occur, not sure)
Perfect! absolutely wonderful piece of code. However, the X and Y are mixed up so all you have to do it to change lines 254 to 257 to:
ROI.Xmin = GP.SP1(2);
ROI.Xmax = GP.SP2(2);
ROI.Ymin = GP.SP1(1);
ROI.Ymax = GP.SP2(1);
and the problem will be fixed, so here X and Y will repsent Rows and Columns (as like the matlab format of x and y). So Xmin is the row number of the upper left side of the ROI.
If one truly measures zero, what would be the expected response? A constant? I can see how that may pose a problem, but what is the question imposed on the data? This is a good question. I did not consider measuring zero. Give me a few days to revisit and have a response. - Jeff
I tried the function, and it worked for part of my problems. It seems that the code does not support if datain contains 0 in it? If there is 0 in the datain, the error report is:
??? Undefined function or variable "xy".
Error in ==> lowess at 269