Skip to content

Get Mat in a blob #24158

@LaurentBerger

Description

@LaurentBerger

Describe the feature and motivation

I think it could be usefull to get a specific Mat in a blob to read or write data

Additional context

Code could be

/**
* return a specific Mat in a blob.
* if dims blob is less or equal  to 2 (N rows x M columns) blob is return
* if dims blob is 3 blob is blob is (H x N x M array) mat at (coord(0),0, 0) is returned.
* if dims blob is r blob is blob is (T x H x N x M array) mat at (coord(0), coord(1), 0, 0) is returned.
* */
Mat getMatInBlob(Mat blob, vector<int> coord, int posChannel = DNN_LAYOUT_NCHW)
{

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions