|
564 | 564 | "source": [
|
565 | 565 | "The `equation` op allows you to generate an image from a formula in JavaScript syntax.\n",
|
566 | 566 | "\n",
|
567 |
| - "Such images can be useful for testing without needing an external image source, or a long and bulky list of numbers." |
| 567 | + "Such images can be useful for testing without needing an external image source, or a long and bulky list of numbers.\n", |
| 568 | + "This `Op` will execute the equation on each pixel of the image. Within the equation the current location can be retrieved via the variable `p[]` (see example equation below)." |
568 | 569 | ]
|
569 | 570 | },
|
570 | 571 | {
|
|
984 | 985 | "source": [
|
985 | 986 | "You can also call any op in an `eval` statement as a function, using familiar function syntax.\n",
|
986 | 987 | "\n",
|
987 |
| - "Here is an example of the `eval` op being used to compute a [Difference of Gaussians](https://en.wikipedia.org/wiki/Difference_of_Gaussians):" |
| 988 | + "The following is an example of the `eval` op being used to compute a [Difference of Gaussians](https://en.wikipedia.org/wiki/Difference_of_Gaussians). Inputs within the formula may be accessed via the `Map vars?` argument of the eval function and the key of the map corresponds to the name of the variable that can be used in the formula." |
988 | 989 | ]
|
989 | 990 | },
|
990 | 991 | {
|
|
1579 | 1580 | "cell_type": "markdown",
|
1580 | 1581 | "metadata": {},
|
1581 | 1582 | "source": [
|
1582 |
| - "Convolution is a very helpful filter for many circumstances. Below is an example of how to use the convolution filter. " |
| 1583 | + "[Convolution](https://en.wikipedia.org/wiki/Convolution) is a very helpful filter for many circumstances. Below is an example of how to use the convolution filter." |
1583 | 1584 | ]
|
1584 | 1585 | },
|
1585 | 1586 | {
|
|
2059 | 2060 | "execution_count": 49,
|
2060 | 2061 | "metadata": {},
|
2061 | 2062 | "outputs": [
|
| 2063 | + { |
| 2064 | + "name": "stdout", |
| 2065 | + "output_type": "stream", |
| 2066 | + "text": [ |
| 2067 | + "Eye bounds: (0, 0) - (39, 27)\n", |
| 2068 | + "EyeView bounds: (75, 27) - (114, 54)\n" |
| 2069 | + ] |
| 2070 | + }, |
2062 | 2071 | {
|
2063 | 2072 | "data": {
|
2064 | 2073 | "text/html": [
|
|
2077 | 2086 | "eye = ij.op().run(\"crop\", image, region)\n",
|
2078 | 2087 | "eyeView = ij.op().run(\"intervalView\", image, region)\n",
|
2079 | 2088 | "\n",
|
| 2089 | + "println(\"Eye bounds: \" + bounds(eye))\n", |
| 2090 | + "println(\"EyeView bounds: \" + bounds(eyeView))\n", |
2080 | 2091 | "ij.notebook().display([[\"eye\":eye, \"view\":eyeView]])"
|
2081 | 2092 | ]
|
2082 | 2093 | },
|
|
2543 | 2554 | "source": [
|
2544 | 2555 | "Ops includes operators for mathematical morphology in both binary and grayscale. The two most basic morphological operators are:\n",
|
2545 | 2556 | "\n",
|
2546 |
| - "* erosion – reducing bright pixels at the borders\n", |
2547 |
| - "* dilation - growing bright pixels at the borders\n", |
| 2557 | + "* erosion – reducing bright pixels at the edges of the image\n", |
| 2558 | + "* dilation - growing bright pixels at the edges of the image\n", |
2548 | 2559 | "\n",
|
2549 | 2560 | "The next two most basic are:\n",
|
2550 | 2561 | "\n",
|
|
0 commit comments