Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[doc] use 1D (row-only or column only) filter #25408

@chacha21

Description

@chacha21

Describe the doc issue

my goal is to use the same 1D filter for every row of a mat

Currently, https://docs.opencv.org/4.x/dc/d66/group__cudafilters.html#gac642081c9b2672876f9bf2cc7f1b2b3f mentions the separable linear filters.

But it does not tell anything if you want only a 1D convolution, (only row or only col), by passing cv::noArray() to the unwanted kernels.
It does not seem possible :

  • the code of createSeparableLinearFilter does not assert() for empty kernels
  • the code of createSeparableLinearFilter raise exception when trying to reshape() empty kernels

What is the expected API for 1D filtering ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions