What the difference between function pattern and substitute defined in GAPI_TRANSFORM

Recently, I meet a fail case named "PatternMatchingIntegrationE2E.ChainTransformationsApplied " while execute opencv_test_gapi. So I do some research on this test program, but can’t understand this gapi pipeline very well.

This test program use a Macro called GAPI_TRANSFORM to define a image transform action, every defined transform include two member function called pattern and substitute.

Someone can tell me what these two functions do while execute gapi pipeline?
Thankyou.

1 Like