diff --git a/modules/gapi/doc/20-kernel-api.markdown b/modules/gapi/doc/20-kernel-api.markdown index 3a94651eaf..6ad882eda8 100644 --- a/modules/gapi/doc/20-kernel-api.markdown +++ b/modules/gapi/doc/20-kernel-api.markdown @@ -18,7 +18,25 @@ compilation). Kernel-implementation hierarchy may look like: -![Kernel API/implementation hierarchy example](pics/kernel_hierarchy.png) +@dot Kernel API/implementation hierarchy example +digraph { + rankdir=BT; + node [shape=record]; + + ki_a [label="{ interface\nA}"]; + ki_b [label="{ interface\nB}"]; + + {rank=same; ki_a ki_b}; + + "CPU::A" -> ki_a [dir="forward"]; + "OpenCL::A" -> ki_a [dir="forward"]; + "Halide::A" -> ki_a [dir="forward"]; + + "CPU::B" -> ki_b [dir="forward"]; + "OpenCL::B" -> ki_b [dir="forward"]; + "Halide::B" -> ki_b [dir="forward"]; +} +@enddot A pipeline itself then can be expressed only in terms of `A`, `B`, and so on, and choosing which implementation to use in execution becomes diff --git a/modules/gapi/doc/dot/kernel_hierarchy.dot b/modules/gapi/doc/dot/kernel_hierarchy.dot deleted file mode 100644 index 0eb92bc409..0000000000 --- a/modules/gapi/doc/dot/kernel_hierarchy.dot +++ /dev/null @@ -1,17 +0,0 @@ -digraph { - rankdir=BT; - node [shape=record]; - - ki_a [label="{ interface\nA}"]; - ki_b [label="{ interface\nB}"]; - - {rank=same; ki_a ki_b}; - - "CPU::A" -> ki_a [dir="forward"]; - "OpenCL::A" -> ki_a [dir="forward"]; - "Halide::A" -> ki_a [dir="forward"]; - - "CPU::B" -> ki_b [dir="forward"]; - "OpenCL::B" -> ki_b [dir="forward"]; - "Halide::B" -> ki_b [dir="forward"]; -} diff --git a/modules/gapi/doc/pics/kernel_hierarchy.png b/modules/gapi/doc/pics/kernel_hierarchy.png deleted file mode 100644 index 631f4a10d6..0000000000 Binary files a/modules/gapi/doc/pics/kernel_hierarchy.png and /dev/null differ