Feature Request: Add Mat Transpose for Channel Reorder (HWC → CHW)
Author: weihuanwanCreated Feb 6, 2026Updated Feb 24, 2026
In Python (NumPy / OpenCV / PaddleOCR / PyTorch workflows), it is very common to convert image layout from HWC → CHW using:
img = img.transpose((2, 0, 1))
However, in gocv, there is currently no direct equivalent API to reorder dimensions of an image tensor / Mat.
Source: hybridgroup/gocv