diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-09-12 17:23:25 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-09-12 17:23:25 -0400 |
commit | fe82ce111a0c4efc736d25758fda0996bb556811 (patch) | |
tree | 972de437b52758cb75a719fc4305e63dcca70b7b | |
parent | 7fedb64c474fc8cb3bab62c84801a015fcf275fe (diff) | |
download | beam_profiler-fe82ce111a0c4efc736d25758fda0996bb556811.tar.gz beam_profiler-fe82ce111a0c4efc736d25758fda0996bb556811.zip |
enable fitting negative beams too
Lower bound for peak amplitude now is -inf, this is handy with
subtracted images.
-rw-r--r-- | fitgaussian2D.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitgaussian2D.m b/fitgaussian2D.m index a6f3d10..02c9fa2 100644 --- a/fitgaussian2D.m +++ b/fitgaussian2D.m @@ -67,7 +67,7 @@ background = fp1D(4); [X,Y] = meshgrid(1:sizex,1:sizey); %Lower and upper limits for the 2D fit -LB = [1,1,1,1,0,-1.58,0]; +LB = [1,1,1,1,-inf,-1.58,0]; UB = [sizex,sizey,sizex*10,sizey*10,inf,1.58,inf]; % Here we do the 2D fit |