#line 1 "/user/cvsspst/ees1cg/RAVL/RAVL-0.7/Image/Processing/Edges/SqrComposition.hh" // This file is part of RAVL, Recognition And Vision Library // Copyright (C) 2001, University of Surrey // This code may be redistributed under the terms of the GNU Lesser // General Public License (LGPL). See the lgpl.licence file for details or // see http://www.gnu.org/copyleft/lesser.html // file-header-ends-here #ifndef RAVLIMAGE_SQRCOMPOSITION_HEADER #define RAVLIMAGE_SQRCOMPOSITION_HEADER 1 ////////////////////////////////////////////////////// //! rcsid="$Id: SqrComposition.hh,v 1.5 2002/04/28 22:09:46 craftit Exp $" //! file="Ravl/Image/Processing/Edges/SqrComposition.hh" //! lib=RavlImageProc //! docentry="Ravl.Images.Misc" //! author="Charles Galambos" //! date="04/07/2000" #include "Ravl/Types.hh" #include "Ravl/Image/Image.hh" #include "Ravl/Tuple2.hh" namespace RavlImageN { //! userlevel=Develop //: Square Composition. // class SqrCompositionC { public: SqrCompositionC() {} //: Default constructor. bool Apply(const ImageC &inImgDx,const ImageC &inImgDy,ImageC &out); //: Square composition of inImg1 and inImg2. bool Apply(const ImageC > &inImg,ImageC &out); //: Calculate the maginute image. bool Apply(const Tuple2C,ImageC > &inImg,ImageC &out) { return Apply(inImg.Data1(),inImg.Data2(),out); } //: Square composition of inImg1 and inImg2. protected: void DoSqrComp(ImageC &res,ImageC &img1,ImageC &img2,IntT startRow,IntT endRow); }; } #endif