VisionCpp
0.0.1
include
operators
experimental
OP_Sub.hpp
Go to the documentation of this file.
1
// This file is part of VisionCPP, a lightweight C++ template library
2
// for computer vision and image processing.
3
//
4
// Copyright (C) 2016 Codeplay Software Limited. All Rights Reserved.
5
//
6
// Contact: visioncpp@codeplay.com
7
//
8
// Licensed under the Apache License, Version 2.0 (the "License");
9
// you may not use this file except in compliance with the License.
10
// You may obtain a copy of the License at
11
//
12
// http://www.apache.org/licenses/LICENSE-2.0
13
//
14
// Unless required by applicable law or agreed to in writing, software
15
// distributed under the License is distributed on an "AS IS" BASIS,
16
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
// See the License for the specific language governing permissions and
18
// limitations under the License.
19
20
/// \file OP_Sub.hpp
21
/// \brief It calculates the difference between 2 images
22
23
namespace
visioncpp
{
24
/// \struct OP_Sub
25
/// \brief This functor subtracts 2 images
26
struct
OP_Sub
{
27
/// \brief This functor subtracts 2 images
28
/// \param t1 - First image
29
/// \param t2 - Second image
30
/// \return float - Return the difference (t1 - t2)
31
template
<
typename
T1,
typename
T2>
32
float
operator()
(T1 t1, T2 t2) {
33
return
t1 - t2;
34
}
35
};
36
}
visioncpp
VisionCpp namespace.
Definition:
sycl/device.hpp:24
visioncpp::OP_Sub
This functor subtracts 2 images.
Definition:
OP_Sub.hpp:26
visioncpp::OP_Sub::operator()
float operator()(T1 t1, T2 t2)
This functor subtracts 2 images.
Definition:
OP_Sub.hpp:32
Generated on Thu Apr 18 2024 09:07:15 for VisionCpp by
1.9.1