GpuSurfDetector.cppGo to the documentation of this file.00001 /* 00002 Copyright (c) 2010, Paul Furgale and Chi Hay Tong 00003 All rights reserved. 00004 00005 Redistribution and use in source and binary forms, with or without 00006 modification, are permitted provided that the following conditions are 00007 met: 00008 00009 * Redistributions of source code must retain the above copyright notice, 00010 this list of conditions and the following disclaimer. 00011 * Redistributions in binary form must reproduce the above copyright 00012 notice, this list of conditions and the following disclaimer in the 00013 documentation and/or other materials provided with the distribution. 00014 * The names of its contributors may not be used to endorse or promote 00015 products derived from this software without specific prior written 00016 permission. 00017 00018 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00019 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 00020 TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 00021 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER 00022 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00023 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00024 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00026 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00027 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00028 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00029 */ 00030 00031 #include <gpusurf/GpuSurfDetector.hpp> 00032 #include "GpuSurfDetectorInternal.hpp" 00033 //#include "utils.h" 00034 00035 namespace asrl { 00036 00037 GpuSurfDetector::GpuSurfDetector(GpuSurfConfiguration config) 00038 : m_implementation(0) 00039 { 00040 m_implementation = new GpuSurfDetectorInternal(config); 00041 } 00042 00043 GpuSurfDetector::~GpuSurfDetector() 00044 { 00045 if(m_implementation) 00046 delete m_implementation; 00047 } 00048 00049 void GpuSurfDetector::buildIntegralImage(cv::Mat & image) 00050 { 00051 m_implementation->buildIntegralImage(image); 00052 } 00053 00054 void GpuSurfDetector::detectKeypoints() 00055 { 00056 m_implementation->detectKeypoints(); 00057 } 00058 00059 void GpuSurfDetector::findOrientation() 00060 { 00061 m_implementation->findOrientation(); 00062 } 00063 00064 void GpuSurfDetector::findOrientationFast() 00065 { 00066 m_implementation->findOrientationFast(); 00067 } 00068 00069 void GpuSurfDetector::computeDescriptors() 00070 { 00071 m_implementation->computeDescriptors(); 00072 } 00073 00074 void GpuSurfDetector::computeUprightDescriptors() 00075 { 00076 m_implementation->computeUprightDescriptors(); 00077 } 00078 00079 void GpuSurfDetector::getKeypoints(std::vector<cv::KeyPoint> & outKeypoints) 00080 { 00081 m_implementation->getKeypoints(outKeypoints); 00082 } 00083 00084 void GpuSurfDetector::setKeypoints(std::vector<cv::KeyPoint> const & inKeypoints) 00085 { 00086 m_implementation->setKeypoints(inKeypoints); 00087 } 00088 00089 void GpuSurfDetector::saveIntegralImage(std::string const & basename) 00090 { 00091 m_implementation->saveIntegralImage(basename); 00092 } 00093 00094 void GpuSurfDetector::getDescriptors(std::vector<float> & outDescriptors) 00095 { 00096 m_implementation->getDescriptors(outDescriptors); 00097 } 00098 00099 int GpuSurfDetector::descriptorSize() 00100 { 00101 return m_implementation->descriptorSize(); 00102 } 00103 00104 00105 } // namespace asrl Generated on Fri Apr 30 20:06:19 2010 for gpusurf by 1.6.2 |