00001 /*========================================================================= 00002 00003 Program: 3DMed 00004 Date: $Date: 2014-02-25 18:30:00 +0800 $ 00005 Version: $Version: 4.6.0 $ 00006 Copyright: MIPG, Institute of Automation, Chinese Academy of Sciences 00007 00008 =========================================================================*/ 00009 00010 00011 #ifndef __mitkFiniteDifferenceGradientEstimator_h 00012 #define __mitkFiniteDifferenceGradientEstimator_h 00013 00014 #include "mitkEncodedGradientEstimator.h" 00015 00021 class MITK_VISUALIZATION_API mitkFiniteDifferenceGradientEstimator : public mitkEncodedGradientEstimator 00022 { 00023 public: 00024 MITK_TYPE(mitkFiniteDifferenceGradientEstimator,mitkEncodedGradientEstimator) 00025 00026 mitkFiniteDifferenceGradientEstimator(); 00027 00029 // Set the spacing between samples for the finite differences 00030 // method used to compute the normal. This spacing is in voxel units. 00034 void SetSampleSpacingInVoxels(int nVal){m_SampleSpacingInVoxels = nVal;} 00035 00037 // Get the spacing between samples for the finite differences 00038 // method used to compute the normal. This spacing is in voxel units. 00042 int GetSampleSpacingInVoxels(){return m_SampleSpacingInVoxels;} 00043 00044 // The sample spacing between samples taken for the normal estimation 00045 int m_SampleSpacingInVoxels; 00046 00047 protected: 00048 virtual ~mitkFiniteDifferenceGradientEstimator(); 00049 // Description: 00050 // Recompute the encoded normals and gradient magnitudes. 00051 void _updateNormals(void); 00052 00053 private: 00054 mitkFiniteDifferenceGradientEstimator(const mitkFiniteDifferenceGradientEstimator&); 00055 void operator=(const mitkFiniteDifferenceGradientEstimator&); 00056 }; 00057 00058 00059 //#define DEFINED_mitkFiniteDifferenceGradientEstimator 00060 00061 00062 00063 #endif 00064 00065 /*========================================================================= 00066 00067 Program: Visualization Toolkit 00068 Module: $RCSfile$ 00069 Language: C++ 00070 Date: $Date: 2006-04-28 10:35:09 +0800 (ÐÇÆÚÎå, 28 ËÄÔÂ 2006) $ 00071 Version: $Revision: 2 $ 00072 00073 00074 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00075 All rights reserved. 00076 00077 Redistribution and use in source and binary forms, with or without 00078 modification, are permitted provided that the following conditions are met: 00079 00080 * Redistributions of source code must retain the above copyright notice, 00081 this list of conditions and the following disclaimer. 00082 00083 * Redistributions in binary form must reproduce the above copyright notice, 00084 this list of conditions and the following disclaimer in the documentation 00085 and/or other materials provided with the distribution. 00086 00087 * Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names 00088 of any contributors may be used to endorse or promote products derived 00089 from this software without specific prior written permission. 00090 00091 * Modified source versions must be plainly marked as such, and must not be 00092 misrepresented as being the original software. 00093 00094 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' 00095 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00096 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00097 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR 00098 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00099 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00100 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00101 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00102 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00103 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00104 00105 =========================================================================*/ 00106