iplprocessing.cpp

来自「BCAM 1394 Driver」· C++ 代码 · 共 52 行

CPP
52
字号
//-----------------------------------------------------------------------------
//  (c) 2002 by Basler Vision Technologies
//  Section:  Vision Components
//  Project:  BCAM
//  $Header: IPLProcessing.cpp, 3, 16.09.2002 10:28:22, Nebelung, H.$
//-----------------------------------------------------------------------------
/**
  \file     IPLProcessing.cpp
  \brief    Implementation of the CIplProcessing class.
*/


#include "stdafx.h"

#include "IPLProcessing.h"


/*! Creates an image which is filtered by a 5x5 Laplacian.

  If ptrDest is NULL or if the size of the referenced image does not fit ptrSource the 
  old image pointed to by ptrDest will be destroyed and a new fitting one created. 
  If ptrSource is NULL ptrDestinateion is destroyed and the function returns immediately.
  
*/
void CIplProcessing::ProcessImage(
                                  CDibIplPtr &ptrDest,                    //!< Smart pointer to the destinat韔n image. 
                                  CDibIplPtr &ptrSource                   //!< Smart pointer to the source image
                                  )
{
  // No source no destination...
  if(!ptrSource)
  {
    ptrDest.Release();
    return;
  }
  
  // If necessary create a matching targe bitmap
  if( !ptrDest || !ptrDest->IsEqualType(*ptrSource))
  {
    ptrDest = ptrSource->Clone();
  }
  
  /**************************************/
  
  
  iplFixedFilter( ptrSource->GetIplImage(),
    ptrDest->GetIplImage(),
    IPL_LAPLACIAN_5x5);
  
  
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?