Skip to content

Feature Request: Add Mat Transpose for Channel Reorder (HWC → CHW) #1363

@192902649

Description

@192902649

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions