Ask Your Question

coincheung's profile - activity

2020-07-22 15:30:02 -0500 marked best answer how could I change memory layout from hwc to chw ?

Hi,

I noticed that the default memory order is HWC which means that the offset is computed as offset = h * im.rows * im.elemSize() + w * im.elemSize() + c. However, I need to change the layout to CHW mode, which means that the offset of (h, w, c) should be offset = c * im.rows * im.cols + h * im.cols + w.

Is there any built-in method to do this ? If not, is there any c++11/14 built-in method to do this? Or what is the fastest way to do this ?

2020-05-13 06:26:10 -0500 asked a question How could I achieve similar function such as the piecewise affine transform?

How could I achieve similar function such as the piecewise affine transform? Hi, There is a method in scikit-image cal

2020-02-28 13:26:42 -0500 received badge  Student (source)
2020-02-27 19:36:00 -0500 edited question how could I change memory layout from hwc to chw ?

how could I change memory layout from hwc to chw ? Hi, I noticed that the default memory order is HWC which means that

2020-02-27 19:35:20 -0500 asked a question how could I change memory layout from hwc to chw ?

how could I change memory layout from hwc to chw ? Hi, I noticed that the default memory order is HWC which means that

2019-11-26 01:41:02 -0500 commented question cv2 calculate histogram 3x slower than pillow

Thanks for replying, after change time.time() into cv2.getTickCount(), the cv2 code is still slower than pil. Do I have

2019-11-26 01:02:24 -0500 edited question cv2 calculate histogram 3x slower than pillow

cv2 calculate histogram 3x slower than pillow Hi, My test code is like this: n_test = 1000 t1 = time.time() for i

2019-11-26 01:02:06 -0500 received badge  Editor (source)
2019-11-26 01:02:06 -0500 edited question cv2 calculate histogram 3x slower than pillow

cv2 calculate histogram 3x slower than pillow Hi, My test code is like this: n_test = 1000 t1 = time.time() for i

2019-11-26 01:01:39 -0500 asked a question cv2 calculate histogram 3x slower than pillow

cv2 calculate histogram 3x slower than pillow Hi, My test code is like this: n_test = 1000 t1 = time.time() for i

2018-10-19 07:28:26 -0500 asked a question cmake build error

cmake build error Hi, I am working on archlinux, and my opencv version is 3.4.3(by the output of pkg-config --modversi