Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

core: refactored normDiff in hal_rvv and extended with support of more data types#27115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
asmorkalov merged 8 commits intoopencv:4.xfromfengyuentau:4x/hal_rvv/normDiff
Mar 25, 2025
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
address comment
  • Loading branch information
@fengyuentau
fengyuentau committedMar 24, 2025
commitd87439b69bae3e2d99aba1afb7b3fa20e44f98e4
2 changes: 1 addition & 1 deletion3rdparty/hal_rvv/hal_rvv_1p0/norm.hpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1002,13 +1002,13 @@ inline int norm(const uchar* src, size_t src_step, const uchar* mask, size_t mas
},
};

// [FIXME] append more when merging to 5.x
static const size_t elem_size_tab[CV_DEPTH_MAX] = {
sizeof(uchar), sizeof(schar),
sizeof(ushort), sizeof(short),
sizeof(int), sizeof(float),
sizeof(int64_t), 0,
};
CV_ASSERT(elem_size_tab[depth]);

bool src_continuous = (src_step == width * elem_size_tab[depth] * cn || (src_step != width * elem_size_tab[depth] * cn && height == 1));
bool mask_continuous = (mask_step == width);
Expand Down
2 changes: 1 addition & 1 deletion3rdparty/hal_rvv/hal_rvv_1p0/norm_diff.hpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1111,13 +1111,13 @@ inline int normDiff(const uchar* src1, size_t src1_step, const uchar* src2, size
},
};

// [FIXME] append more when merging to 5.x
static const size_t elem_size_tab[CV_DEPTH_MAX] = {
sizeof(uchar), sizeof(schar),
sizeof(ushort), sizeof(short),
sizeof(int), sizeof(float),
sizeof(int64_t), 0,
};
CV_ASSERT(elem_size_tab[depth]);

bool src_continuous = (src1_step == width * elem_size_tab[depth] * cn || (src1_step != width * elem_size_tab[depth] * cn && height == 1));
src_continuous &= (src2_step == width * elem_size_tab[depth] * cn || (src2_step != width * elem_size_tab[depth] * cn && height == 1));
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp