NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
mitkOpenCVImageProcessing.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef mitkOpenCVImageProcessing_h
16 #define mitkOpenCVImageProcessing_h
17 
18 #include "niftkOpenCVUtilsExports.h"
19 #include <cv.h>
20 
25 namespace mitk {
26 
31 extern "C++" NIFTKOPENCVUTILS_EXPORT cv::Point2d FindCrosshairCentre(const cv::Mat& image,
32  const int& cannyLowThreshold, const int& cannyHighThreshold, const int& cannyKernel,
33  const double& houghRho, const double& houghTheta, const int& houghThreshold,
34  const int& houghLineLength, const int& houghLineGap, cv::vector <cv::Vec4i>& lines);
35 
39 extern "C++" NIFTKOPENCVUTILS_EXPORT unsigned int ApplyMask (
40  std::vector < std::pair <cv::Point2d, cv::Point2d> >& pointPairs,
41  const cv::Mat& maskImage, const unsigned int& maskValue, const bool& maskUsingFirst);
42 
43 } // end namespace
44 
45 #endif
46 
47 
48 
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: glew.h:4052
Definition: ReceptorMemberCommandTest.cxx:25
cv::Point2d FindCrosshairCentre(const cv::Mat &image, const int &cannyLowThreshold, const int &cannyHighThreshold, const int &cannyKernel, const double &houghRho, const double &houghTheta, const int &houghThreshold, const int &houghLineLength, const int &houghLineGap, cv::vector< cv::Vec4i > &lines)
finds the intersection of two lines in an image
Definition: mitkOpenCVImageProcessing.cxx:28
unsigned int ApplyMask(std::vector< std::pair< cv::Point2d, cv::Point2d > > &pointPairs, const cv::Mat &mask, const unsigned int &blankValue, const bool &maskUsingFirst)
Applies binary mask to a vector of point pairs.
Definition: mitkOpenCVImageProcessing.cxx:118