Skip to content

Commit

Permalink
Code refactoring and more operators support
Browse files Browse the repository at this point in the history
Refactor some code to comply with OpenCV's coding style and make the
logic clearer.

Rename some class names:
| Object    | CANN                     | CUDA     |
| --------- | ------------------------ | -------- |
| Namespace | cv::cann                 | cv::cuda |
| Matrix    | AclMat -> NpuMat         | GpuMat   |
| Stream    | AclStream -> AscendStrem | Stream   |
| Event     | AclEvent  -> AscendEvent | Event    |

Add more operators:
- [x] bitwise_not
- [x] addWeighted
- [x] crop
- [x] cvtColor (support part of color formats)
- [x] merge
- [x] split
- [x] rotate
- [x] flip
- [x] threshold
- [x] transpose

Co-authored-by: CaoMengqing <[email protected]>
  • Loading branch information
hipudding and MengqingCao committed Sep 15, 2023
1 parent b07acec commit dbceb99
Show file tree
Hide file tree
Showing 43 changed files with 4,276 additions and 2,273 deletions.
40 changes: 0 additions & 40 deletions modules/cannarithm/include/opencv2/acl_stream_accessor.hpp

This file was deleted.

335 changes: 0 additions & 335 deletions modules/cannarithm/include/opencv2/cann.hpp

This file was deleted.

Loading

0 comments on commit dbceb99

Please sign in to comment.