Commit e54071a5192611b850908f599ee7a5c0c3864b4e
1 parent
6a5af111
removed photo plugins
Showing
3 changed files
with
0 additions
and
123 deletions
openbr/plugins/cmake/opencv.cmake
| @@ -27,12 +27,3 @@ else() | @@ -27,12 +27,3 @@ else() | ||
| 27 | plugins/metadata/cascade.cpp | 27 | plugins/metadata/cascade.cpp |
| 28 | plugins/metadata/hogpersondetector.cpp) | 28 | plugins/metadata/hogpersondetector.cpp) |
| 29 | endif() | 29 | endif() |
| 30 | - | ||
| 31 | -option(BR_WITH_OPENCV_PHOTO "Build with OpenCV photo plugins." ON) | ||
| 32 | -if(${BR_WITH_OPENCV_PHOTO}) | ||
| 33 | - set(BR_THIRDPARTY_LIBS ${BR_THIRDPARTY_LIBS} opencv_photo) | ||
| 34 | - set(OPENCV_DEPENDENCIES ${OPENCV_DEPENDENCIES} opencv_photo) | ||
| 35 | -else() | ||
| 36 | - set(BR_EXCLUDED_PLUGINS ${BR_EXCLUDED_PLUGINS} plugins/imgproc/denoising.cpp | ||
| 37 | - plugins/imgproc/inpaint.cpp) | ||
| 38 | -endif() |
openbr/plugins/imgproc/denoising.cpp deleted
| 1 | -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| 2 | - * Copyright 2012 The MITRE Corporation * | ||
| 3 | - * * | ||
| 4 | - * Licensed under the Apache License, Version 2.0 (the "License"); * | ||
| 5 | - * you may not use this file except in compliance with the License. * | ||
| 6 | - * You may obtain a copy of the License at * | ||
| 7 | - * * | ||
| 8 | - * http://www.apache.org/licenses/LICENSE-2.0 * | ||
| 9 | - * * | ||
| 10 | - * Unless required by applicable law or agreed to in writing, software * | ||
| 11 | - * distributed under the License is distributed on an "AS IS" BASIS, * | ||
| 12 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * | ||
| 13 | - * See the License for the specific language governing permissions and * | ||
| 14 | - * limitations under the License. * | ||
| 15 | - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | ||
| 16 | - | ||
| 17 | -#include <opencv2/photo/photo.hpp> | ||
| 18 | - | ||
| 19 | -#include <openbr/plugins/openbr_internal.h> | ||
| 20 | - | ||
| 21 | -using namespace cv; | ||
| 22 | - | ||
| 23 | -namespace br | ||
| 24 | -{ | ||
| 25 | - | ||
| 26 | -/*! | ||
| 27 | - * \ingroup transforms | ||
| 28 | - * \brief Wraps OpenCV Non-Local Means Denoising | ||
| 29 | - * \br_link http://docs.opencv.org/modules/photo/doc/denoising.html | ||
| 30 | - * \author Josh Klontz \cite jklontz | ||
| 31 | - */ | ||
| 32 | -class NLMeansDenoisingTransform : public UntrainableTransform | ||
| 33 | -{ | ||
| 34 | - Q_OBJECT | ||
| 35 | - Q_PROPERTY(float h READ get_h WRITE set_h RESET reset_h STORED false) | ||
| 36 | - Q_PROPERTY(int templateWindowSize READ get_templateWindowSize WRITE set_templateWindowSize RESET reset_templateWindowSize STORED false) | ||
| 37 | - Q_PROPERTY(int searchWindowSize READ get_searchWindowSize WRITE set_searchWindowSize RESET reset_searchWindowSize STORED false) | ||
| 38 | - BR_PROPERTY(float, h, 3) | ||
| 39 | - BR_PROPERTY(int, templateWindowSize, 7) | ||
| 40 | - BR_PROPERTY(int, searchWindowSize, 21) | ||
| 41 | - | ||
| 42 | - void project(const Template &src, Template &dst) const | ||
| 43 | - { | ||
| 44 | - fastNlMeansDenoising(src, dst, h, templateWindowSize, searchWindowSize); | ||
| 45 | - } | ||
| 46 | -}; | ||
| 47 | - | ||
| 48 | -BR_REGISTER(Transform, NLMeansDenoisingTransform) | ||
| 49 | - | ||
| 50 | -} // namespace br | ||
| 51 | - | ||
| 52 | -#include "imgproc/denoising.moc" |
openbr/plugins/imgproc/inpaint.cpp deleted
| 1 | -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| 2 | - * Copyright 2012 The MITRE Corporation * | ||
| 3 | - * * | ||
| 4 | - * Licensed under the Apache License, Version 2.0 (the "License"); * | ||
| 5 | - * you may not use this file except in compliance with the License. * | ||
| 6 | - * You may obtain a copy of the License at * | ||
| 7 | - * * | ||
| 8 | - * http://www.apache.org/licenses/LICENSE-2.0 * | ||
| 9 | - * * | ||
| 10 | - * Unless required by applicable law or agreed to in writing, software * | ||
| 11 | - * distributed under the License is distributed on an "AS IS" BASIS, * | ||
| 12 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * | ||
| 13 | - * See the License for the specific language governing permissions and * | ||
| 14 | - * limitations under the License. * | ||
| 15 | - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | ||
| 16 | - | ||
| 17 | -#include <opencv2/photo/photo.hpp> | ||
| 18 | - | ||
| 19 | -#include <openbr/plugins/openbr_internal.h> | ||
| 20 | - | ||
| 21 | -using namespace cv; | ||
| 22 | - | ||
| 23 | -namespace br | ||
| 24 | -{ | ||
| 25 | - | ||
| 26 | -/*! | ||
| 27 | - * \ingroup transforms | ||
| 28 | - * \brief Wraps OpenCV inpainting | ||
| 29 | - * \br_link http://docs.opencv.org/modules/photo/doc/inpainting.html | ||
| 30 | - * \author Josh Klontz \cite jklontz | ||
| 31 | - */ | ||
| 32 | -class InpaintTransform : public UntrainableTransform | ||
| 33 | -{ | ||
| 34 | - Q_OBJECT | ||
| 35 | - Q_ENUMS(Method) | ||
| 36 | - Q_PROPERTY(int radius READ get_radius WRITE set_radius RESET reset_radius STORED false) | ||
| 37 | - Q_PROPERTY(Method method READ get_method WRITE set_method RESET reset_method STORED false) | ||
| 38 | - | ||
| 39 | -public: | ||
| 40 | - /*!< */ | ||
| 41 | - enum Method { NavierStokes = INPAINT_NS, | ||
| 42 | - Telea = INPAINT_TELEA }; | ||
| 43 | - | ||
| 44 | -private: | ||
| 45 | - BR_PROPERTY(int, radius, 1) | ||
| 46 | - BR_PROPERTY(Method, method, NavierStokes) | ||
| 47 | - Transform *cvtGray; | ||
| 48 | - | ||
| 49 | - void init() | ||
| 50 | - { | ||
| 51 | - cvtGray = make("Cvt(Gray)"); | ||
| 52 | - } | ||
| 53 | - | ||
| 54 | - void project(const Template &src, Template &dst) const | ||
| 55 | - { | ||
| 56 | - inpaint(src, (*cvtGray)(src)<5, dst, radius, method); | ||
| 57 | - } | ||
| 58 | -}; | ||
| 59 | - | ||
| 60 | -} // namespace br | ||
| 61 | - | ||
| 62 | -#include "imgproc/inpaint.moc" |