00001 /* Gnome gxsm - Gnome X Scanning Microscopy 00002 * universal STM/AFM/SARLS/SPALEED/... controlling and 00003 * data analysis software 00004 * 00005 * THIS FILE IS FOR AUTOMATIC DOCUMENTATION ONLY 00006 * --> may used later for the correspondig real PlugIn! 00007 * 00008 * Copyright (C) 1999 The Free Software Foundation 00009 * 00010 * Authors: Percy Zahl <zahl@fkp.uni-hannover.de> 00011 * additional features: Andreas Klust <klust@fkp.uni-hannover.de> 00012 * 00013 * This program is free software; you can redistribute it and/or modify 00014 * it under the terms of the GNU General Public License as published by 00015 * the Free Software Foundation; either version 2 of the License, or 00016 * (at your option) any later version. 00017 * 00018 * This program is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 * GNU General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU General Public License 00024 * along with this program; if not, write to the Free Software 00025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 00026 */ 00027 00028 /* Please do not change the Begin/End lines of this comment section! 00029 * this is a LaTeX style section used for auto generation of the PlugIn Manual 00030 * Chapter. Add a complete PlugIn documentation inbetween the Begin/End marks! 00031 * All "% PlugInXXX" commentary tags are mandatory 00032 * All "% OptPlugInXXX" tags are optional 00033 * -------------------------------------------------------------------------------- 00034 % BeginPlugInDocuSection 00035 % PlugInDocuCaption: Line Regression 00036 % PlugInName: (DocOnly) LineRegress 00037 % PlugInAuthor: Percy Zahl 00038 % PlugInAuthorEmail: zahl@users.sf.net 00039 % PlugInMenuPath: Math/Background/Line Regress 00040 00041 % PlugInDescription 00042 This applies the \GxsmEmph{Quick View} representation to the 00043 data. Therefore a least squares fit line regression is calculated on a 00044 subset of 30 points for each scan line. This line is subtracted from 00045 the data to correct for slope and offset. 00046 00047 % PlugInUsage 00048 This filter is used for a quick and easy background correction of 00049 sample tilt and possible offset changes inbetween lines. 00050 00051 % OptPlugInSources 00052 The active channel is used as data source. 00053 00054 %% OptPlugInObjects 00055 %A optional rectangle is used for data extraction... 00056 00057 % OptPlugInDest 00058 The computation result is placed into an existing math channel, else 00059 into a new created math channel. 00060 00061 %% OptPlugInConfig 00062 %describe the configuration options of your plug in here! 00063 00064 %% OptPlugInRefs 00065 %Any references? 00066 00067 %% OptPlugInKnownBugs 00068 %Are there known bugs? List! How to work around if not fixed? 00069 00070 % OptPlugInNotes 00071 At this time this filter is not a real PlugIn (in principal it could 00072 be), but it resides in the Gxsm Core located in the file 00073 \GxsmFile{Gxsm/src/xsmmath.C} as a subroutine and cannot be removed, 00074 because the core code is dependent on this subroutine. 00075 00076 % OptPlugInHints 00077 Doing it better: try using a plane regression! If this works, great! 00078 In case there are offset changes inbetween lines, you can try getting 00079 better results with an proceeding \GxsmMenu{Math/Filter 00080 2D/LineShifts}. If you have some spikes in you image, try removing 00081 those first with the \GxsmMenu{Math/Filter 2D/Despike}. 00082 00083 00084 % EndPlugInDocuSection 00085 * -------------------------------------------------------------------------------- 00086 */