File: basics.rst

package info (click to toggle)
boost1.90 1.90.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 593,156 kB
  • sloc: cpp: 4,190,642; xml: 196,648; python: 34,618; ansic: 23,145; asm: 5,468; sh: 3,776; makefile: 1,161; perl: 1,020; sql: 728; ruby: 676; yacc: 478; java: 77; lisp: 24; csh: 6
file content (54 lines) | stat: -rw-r--r-- 1,755 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Basics
------

Here are basic concepts that might help to understand documentation
written in this folder:

Convolution
~~~~~~~~~~~

The simplest way to look at this is "tweaking the input so that it would
look like the shape provided". What exact tweaking is applied depends on
the kernel.

--------------

Filters, kernels, weights
~~~~~~~~~~~~~~~~~~~~~~~~~

Those three words usually mean the same thing, unless context is clear
about a different usage. Simply put, they are matrices, that are used to
achieve certain effects on the image. Let's consider a simple one, 3 by 3
Scharr filter

``ScharrX = [1,0,-1][1,0,-1][1,0,-1]``

The filter above, when convolved with a single channel image
(intensity/luminance strength), will produce a gradient in X
(horizontal) direction. There is filtering that cannot be done with a
kernel though, and one good example is median filter (mean is the
arithmetic mean, whereas median will be the center element of a sorted
array).

--------------

Derivatives
~~~~~~~~~~~

A derivative of an image is a gradient in one of two directions: x
(horizontal) and y (vertical). To compute a derivative, one can use
Scharr, Sobel and other gradient filters.

--------------

Curvature
~~~~~~~~~

The word, when used alone, will mean the curvature that would be
generated if values of an image would be plotted in 3D graph. X and Z
axes (which form horizontal plane) will correspond to X and Y indices
of an image, and Y axis will correspond to value at that pixel. By
little stretch of an imagination, filters (other names are kernels,
weights) could be considered an image (or any 2D matrix). A mean filter
would draw a flat plane, whereas Gaussian filter would draw a hill that
gets sharper depending on its sigma value.