Commit e6e3eb932f17eefa8d749f70b66ae2f255e42f4b
1 parent
c868cd3e
added copyright notices
Showing
17 changed files
with
202 additions
and
5 deletions
openbr/plugins/cuda/copyfrom.cpp
| 1 | +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| 2 | + * Copyright 2016 Colin Heinzmann * | ||
| 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 | + | ||
| 1 | #include <iostream> | 17 | #include <iostream> |
| 2 | 18 | ||
| 3 | #include <opencv2/opencv.hpp> | 19 | #include <opencv2/opencv.hpp> |
openbr/plugins/cuda/copyfrom.cu
| 1 | +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| 2 | + * Copyright 2016 Colin Heinzmann * | ||
| 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 | + | ||
| 1 | #include "cudadefines.hpp" | 17 | #include "cudadefines.hpp" |
| 2 | 18 | ||
| 3 | namespace br { namespace cuda { namespace copyfrom { | 19 | namespace br { namespace cuda { namespace copyfrom { |
openbr/plugins/cuda/copyto.cpp
| 1 | +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| 2 | + * Copyright 2016 Colin Heinzmann * | ||
| 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 | + | ||
| 1 | #include <iostream> | 17 | #include <iostream> |
| 2 | 18 | ||
| 3 | #include <opencv2/opencv.hpp> | 19 | #include <opencv2/opencv.hpp> |
openbr/plugins/cuda/copyto.cu
| 1 | +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| 2 | + * Copyright 2016 Colin Heinzmann * | ||
| 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 | + | ||
| 1 | #include "cudadefines.hpp" | 17 | #include "cudadefines.hpp" |
| 2 | 18 | ||
| 3 | namespace br { namespace cuda { namespace copyto { | 19 | namespace br { namespace cuda { namespace copyto { |
openbr/plugins/cuda/cudaaffine.cpp
| 1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | 1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2 | - * Copyright 2012 The MITRE Corporation * | 2 | + * Copyright 2016 Greg Shrock, Colin Heinzmann * |
| 3 | * * | 3 | * * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); * | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); * |
| 5 | * you may not use this file except in compliance with the License. * | 5 | * you may not use this file except in compliance with the License. * |
| @@ -15,6 +15,7 @@ | @@ -15,6 +15,7 @@ | ||
| 15 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | 15 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | + | ||
| 18 | #include <iostream> | 19 | #include <iostream> |
| 19 | using namespace std; | 20 | using namespace std; |
| 20 | 21 |
openbr/plugins/cuda/cudaaffine.cu
| 1 | +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| 2 | + * Copyright 2016 Colin Heinzmann * | ||
| 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 | + | ||
| 1 | #include <iostream> | 17 | #include <iostream> |
| 18 | + | ||
| 2 | using namespace std; | 19 | using namespace std; |
| 3 | 20 | ||
| 4 | #include <opencv2/gpu/gpu.hpp> | 21 | #include <opencv2/gpu/gpu.hpp> |
openbr/plugins/cuda/cudacvtfloat.cpp
| 1 | +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| 2 | + * Copyright 2016 Li Li, Colin Heinzmann * | ||
| 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 | + | ||
| 1 | #include <iostream> | 17 | #include <iostream> |
| 2 | using namespace std; | 18 | using namespace std; |
| 3 | #include <unistd.h> | 19 | #include <unistd.h> |
openbr/plugins/cuda/cudacvtfloat.cu
| 1 | +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| 2 | + * Copyright 2016 Li Li, Colin Heinzmann * | ||
| 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 | + | ||
| 1 | #include <iostream> | 17 | #include <iostream> |
| 18 | + | ||
| 2 | using namespace std; | 19 | using namespace std; |
| 3 | 20 | ||
| 4 | #include "cudadefines.hpp" | 21 | #include "cudadefines.hpp" |
openbr/plugins/cuda/cudadefines.hpp
| 1 | +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| 2 | + * Copyright 2016 Colin Heinzmann * | ||
| 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 | + | ||
| 1 | #include <iostream> | 17 | #include <iostream> |
| 18 | + | ||
| 2 | using namespace std; | 19 | using namespace std; |
| 3 | #include <pthread.h> | 20 | #include <pthread.h> |
| 4 | 21 |
openbr/plugins/cuda/cudal2.cpp
| 1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | 1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2 | - * Copyright 2012 The MITRE Corporation * | 2 | + * Copyright 2016 Colin Heinzmann * |
| 3 | * * | 3 | * * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); * | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); * |
| 5 | * you may not use this file except in compliance with the License. * | 5 | * you may not use this file except in compliance with the License. * |
openbr/plugins/cuda/cudal2.cu
| 1 | +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| 2 | + * Copyright 2016 Colin Heinzmann * | ||
| 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 | + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | ||
| 1 | #include <math.h> | 16 | #include <math.h> |
| 2 | 17 | ||
| 18 | + | ||
| 3 | #include "cudadefines.hpp" | 19 | #include "cudadefines.hpp" |
| 4 | 20 | ||
| 5 | namespace br { namespace cuda { namespace L2 { | 21 | namespace br { namespace cuda { namespace L2 { |
openbr/plugins/cuda/cudalbp.cpp
| 1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | 1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2 | - * Copyright 2012 The MITRE Corporation * | 2 | + * Copyright 2016 Li Li, Colin Heinzmann * |
| 3 | * * | 3 | * * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); * | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); * |
| 5 | * you may not use this file except in compliance with the License. * | 5 | * you may not use this file except in compliance with the License. * |
openbr/plugins/cuda/cudalbp.cu
| 1 | +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| 2 | + * Copyright 2016 Li Li, Colin Heinzmann * | ||
| 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 | + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | ||
| 1 | #include <iostream> | 16 | #include <iostream> |
| 17 | + | ||
| 2 | using namespace std; | 18 | using namespace std; |
| 3 | 19 | ||
| 4 | #include <opencv2/gpu/gpu.hpp> | 20 | #include <opencv2/gpu/gpu.hpp> |
openbr/plugins/cuda/cudapca.cpp
| 1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | 1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2 | - * Copyright 2012 The MITRE Corporation * | 2 | + * Copyright 2016 Colin Heinzmann * |
| 3 | * * | 3 | * * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); * | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); * |
| 5 | * you may not use this file except in compliance with the License. * | 5 | * you may not use this file except in compliance with the License. * |
| @@ -13,6 +13,7 @@ | @@ -13,6 +13,7 @@ | ||
| 13 | * See the License for the specific language governing permissions and * | 13 | * See the License for the specific language governing permissions and * |
| 14 | * limitations under the License. * | 14 | * limitations under the License. * |
| 15 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | 15 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
| 16 | + | ||
| 16 | #include <iostream> | 17 | #include <iostream> |
| 17 | using namespace std; | 18 | using namespace std; |
| 18 | #include <unistd.h> | 19 | #include <unistd.h> |
openbr/plugins/cuda/cudapca.cu
| 1 | +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| 2 | + * Copyright 2016 Colin Heinzmann * | ||
| 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 | + | ||
| 1 | #include <iostream> | 17 | #include <iostream> |
| 2 | using namespace std; | 18 | using namespace std; |
| 3 | 19 |
openbr/plugins/cuda/cudargb2grayscale.cpp
| 1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | 1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
| 2 | - * Copyright 2012 The MITRE Corporation * | 2 | + * Copyright 2016 Li Li, Colin Heinzmann * |
| 3 | * * | 3 | * * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); * | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); * |
| 5 | * you may not use this file except in compliance with the License. * | 5 | * you may not use this file except in compliance with the License. * |
openbr/plugins/cuda/cudargb2grayscale.cu
| 1 | +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
| 2 | + * Copyright 2016 Li Li, Colin Heinzmann * | ||
| 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 | + | ||
| 1 | #include <stdio.h> | 17 | #include <stdio.h> |
| 2 | #include <iostream> | 18 | #include <iostream> |
| 3 | #include <opencv2/opencv.hpp> | 19 | #include <opencv2/opencv.hpp> |