Skip to content

In example_convolution.py, are filter subtraction and subtracting filtered results guaranteed to match? #103

Description

@josephyumss

In the code, below elements are computed.

h_sub = h_impulse - h_ma and filter once
lenna_filtered_impulse - lenna_filtered_ma (subtraction of two filtered images)

Mathematically, linearity says these should match, but with border handling like below,

borderType=cv2.BORDER_CONSTANT

is it still exactly same in practice? Or do boundary effects and padding ... make them differ near edges?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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