Skip to content

Commit b6256c8

Browse files
committed
Fix build error
1 parent 070bd77 commit b6256c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/example-opencv.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ int main() {
1919
// step 2. Load image data to src_uint8(8U3C)
2020

2121
// step 3. Convert HWC(Height, Width, Channels) to CHW(Channels, Height, Width)
22-
whyb::hwc2chw<uint8_t, float>(h, w, c, (uint8_t*)src_uint8_mat.data, (float*)src_float_mat.data);
22+
whyb::cpu::hwc2chw<uint8_t, float>(h, w, c, (uint8_t*)src_uint8_mat.data, (float*)src_float_mat.data);
2323

2424
// step 4. Do AI inference
2525
// input: src_float ==infer==> output: out_float
2626

2727
// step 5. Convert CHW(Channels, Height, Width) to HWC(Height, Width, Channels)
28-
whyb::chw2hwc<float, uint8_t>(c, h, w, (float*)out_float_mat.data, (uint8_t*)out_uint8_mat.data);
28+
whyb::cpu::chw2hwc<float, uint8_t>(c, h, w, (float*)out_float_mat.data, (uint8_t*)out_uint8_mat.data);
2929

3030
std::cout << "done" << std::endl;
3131
return 0;

0 commit comments

Comments
 (0)