Skip to content
This repository was archived by the owner on Jan 23, 2022. It is now read-only.

Commit 9185b5d

Browse files
author
sunyufei
committed
Update: 2019/11/18
1 parent 1717053 commit 9185b5d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+748
-74
lines changed

Chapter 2/2.5.ipynb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,21 @@
1818
"cell_type": "markdown",
1919
"metadata": {},
2020
"source": [
21-
"#### The toolbox supports a number of predefined 2_D linear spatial filters, obtained by using function `fspecial`, which generates a filter mask, `w`, using the syntax"
21+
"The toolbox supports a number of predefined 2_D linear spatial filters, obtained by using function `fspecial`, which generates a filter mask, `w`, using the syntax"
2222
]
2323
},
2424
{
25-
"cell_type": "code",
26-
"execution_count": null,
25+
"cell_type": "markdown",
2726
"metadata": {},
28-
"outputs": [],
2927
"source": [
30-
"w = fspecial('type', parameters)"
28+
"**w = fspecial('type', parameters)**"
3129
]
3230
},
3331
{
3432
"cell_type": "markdown",
3533
"metadata": {},
3634
"source": [
37-
"#### where `'type'` specifies the filter type, and `parameters` further define the specified filter. The spatial filters that `fspecial` can generate are summarized in Table 2.5, including applicable parameters for each filter."
35+
"where `'type'` specifies the filter type, and `parameters` further define the specified filter. The spatial filters that `fspecial` can generate are summarized in Table 2.5, including applicable parameters for each filter."
3836
]
3937
},
4038
{
@@ -48,7 +46,7 @@
4846
"cell_type": "markdown",
4947
"metadata": {},
5048
"source": [
51-
"#### First, we generate and display the Laplacian filter:"
49+
"First, we generate and display the Laplacian filter:"
5250
]
5351
},
5452
{
@@ -79,7 +77,7 @@
7977
"cell_type": "markdown",
8078
"metadata": {},
8179
"source": [
82-
"#### Next we apply `w` to the input image, `f`, which is of class `uint8`:"
80+
"Next we apply `w` to the input image, `f`, which is of class `uint8`:"
8381
]
8482
},
8583
{

Chapter 4/4.02.ipynb

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,26 @@
1818
"cell_type": "markdown",
1919
"metadata": {},
2020
"source": [
21-
"#### The Image Processing Toolbox uses function `imnoise` to corrupt an image with noise. This function has the basic syntax"
21+
"The Image Processing Toolbox uses function `imnoise` to corrupt an image with noise. This function has the basic syntax"
2222
]
2323
},
2424
{
25-
"cell_type": "code",
26-
"execution_count": null,
25+
"cell_type": "markdown",
2726
"metadata": {},
28-
"outputs": [],
2927
"source": [
30-
"g = imnoise(f, type, parameters)"
28+
"**g = imnoise(f, type, parameters)**"
3129
]
3230
},
3331
{
3432
"cell_type": "markdown",
3533
"metadata": {},
3634
"source": [
37-
"#### where $f$ is the input image, and `type` and `parameters` are as explained below. Function `imnoise` converts the input image to class `double` in the range $[0,1]$ before adding noise to it. The syntax forms for this function are:"
35+
"where $f$ is the input image, and `type` and `parameters` are as explained below. Function `imnoise` converts the input image to class `double` in the range $[0,1]$ before adding noise to it. The syntax forms for this function are:"
3836
]
3937
},
4038
{
41-
"cell_type": "code",
42-
"execution_count": null,
39+
"cell_type": "markdown",
4340
"metadata": {},
44-
"outputs": [],
4541
"source": [
4642
"g = imnoise(f, 'gaussian', m, var)"
4743
]
@@ -50,7 +46,7 @@
5046
"cell_type": "markdown",
5147
"metadata": {},
5248
"source": [
53-
"#### adds Gaussian noise of mean $m$ and variance $var$ to image $f$. The default is zero mean noise with 0.01 variance."
49+
"adds Gaussian noise of mean $m$ and variance $var$ to image $f$. The default is zero mean noise with 0.01 variance."
5450
]
5551
},
5652
{
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)