mirror of
https://github.com/opencv/opencv.git
synced 2026-11-30 05:17:04 -06:00
doc: modernize Doxygen comments to support for v1.15.0 #28903 This PR addresses several documentation build failures encountered with modern Doxygen versions, particularly v1.15.0 (shipped with Ubuntu 26.04). - flann module: Updated license headers from /**** to /*M****. This prevents Doxygen from misinterpreting the license text (specifically the unclosed backticks in ``AS IS'') as documentation blocks, which previously caused "Reached end of file" errors. - core module: Fixed a typo in operations.hpp where a doubled backtick (``) caused parsing to fail. - tutorials: Fixed a missing backtick in real_time_pose.markdown (around line 108) and corrected typos in the RobustMatcher class name. - Links: Resolved explicit link request failures in calib3d.hpp by ensuring proper namespace resolution. These fixes ensure that the documentation can be generated without errors on the latest toolchains. ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [ ] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
57 lines
2.6 KiB
C++
57 lines
2.6 KiB
C++
/*M*********************************************************************
|
|
* Software License Agreement (BSD License)
|
|
*
|
|
* Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved.
|
|
* Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions
|
|
* are met:
|
|
*
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
* notice, this list of conditions and the following disclaimer.
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
* documentation and/or other materials provided with the distribution.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*************************************************************************/
|
|
|
|
#include "precomp.hpp"
|
|
#include "opencv2/flann.hpp"
|
|
|
|
namespace cvflann
|
|
{
|
|
/** Global variable indicating the distance metric to be used.
|
|
* \deprecated Provided for backward compatibility
|
|
*/
|
|
flann_distance_t flann_distance_type_ = FLANN_DIST_L2;
|
|
CV_DEPRECATED flann_distance_t flann_distance_type() { return flann_distance_type_; }
|
|
|
|
/**
|
|
* Set distance type to used
|
|
* \deprecated
|
|
*/
|
|
void set_distance_type(flann_distance_t distance_type, int /*order*/)
|
|
{
|
|
printf("[WARNING] The cvflann::set_distance_type function is deperecated, "
|
|
"use cv::flann::GenericIndex<Distance> instead.\n");
|
|
if (distance_type != FLANN_DIST_L1 && distance_type != FLANN_DIST_L2) {
|
|
printf("[ERROR] cvflann::set_distance_type only provides backwards compatibility "
|
|
"for the L1 and L2 distances. "
|
|
"For other distance types you must use cv::flann::GenericIndex<Distance>\n");
|
|
}
|
|
flann_distance_type_ = distance_type;
|
|
}
|
|
|
|
}
|